|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
PHP-General - Page redirection
Hello everyone,
I am not an expert in PHP. So please bear with me if my post doesn't make sense. I'm developing a site where users can send sms to their customers who register in their website. The problem is, I want to direct to the URL of the sms gateway to send sms. After the message is sent, I want the control to come back to my webpage. Please help me with this. Thanks in advance.. |
|
#2
|
|||
|
|||
|
Quote:
This would depend on where you are directing the user. If the sms script is a part of your site and assuming it doesn't send any data back to the browser you can use the header() function like this: PHP Code:
|
|
#3
|
|||
|
|||
|
Quote:
Thank you purpleshadez for your reply..But I forgot to mention that the sms script is not a part of my site. It is a different site which sends only smses. |
|
#4
|
|||
|
|||
|
If it is an external site then I do not think it would be possible.
The only thing I can think of is if the SMS site was account based and it had an option to set a referer which would re-direct the user back to your site once finished but I think it would be unlikely. Another option would be to open the SMS site in a new tab or window. I think that would need to be done using javascript though.? |
|
#5
|
|||
|
|||
|
Quote:
Yeah, you could use something like Javascript (maybe it's AJAX, I'm not sure) to call another PHP page that will complete the SMS request...so while it's doing that, the user is alerted that it's been sent. |
|
#6
|
|||
|
|||
|
Thanks for you help purpleshadez and Chris...
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > PHP Development > PHP-General - Page redirection |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|