how to call an url within php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Big Jerry
Forum Newbie
Posts: 3
Joined: Thu Sep 05, 2002 3:09 am

how to call an url within php

Post 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:
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post 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?
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post 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.
Post Reply