Page 1 of 1

how to call an url within php

Posted: Tue Sep 17, 2002 8:17 am
by Big Jerry
Hi all
just a stupid question to the following problem:

I have a form that asks a message and a mobile number to send an sms. This is done in a html part (form) that posts to it self. In my php section I build up the message in a url string. Because of my mobile provider I need to send this string like I would call an webpage.

How can I send this url in a second window? Do I need to use the header function?

Thx

Tom :roll:

Posted: Tue Sep 17, 2002 10:58 am
by Takuma
This should be client forum shouldn't? But anyway

Code: Select all

<form method="POST" target="_blank">
<input type="text">
</form>
Does this help?

Posted: Wed Sep 18, 2002 4:17 am
by twigletmac
Mildly confused by the question - you trying to redirect to another page once the processing is complete? If so then the header function is most likely what you'd want to be using.

Mac

Posted: Wed Sep 18, 2002 6:34 am
by jason
http://www.php.net/manual/en/function.fsockopen.php

That way, PHP can make the connection, send the stuff, and you can then do whatever you need to.