Reply to Re: Posting to a URL

Your name:

Reply:


Posted by Colin McKinnon on 07/03/06 21:41

Alec wrote:

> Sorry but I have a beginners question.
>
> (see www.freeweekends.co.uk/formask.php)
>
> I have a form that checks for a unique id $townref of a given town
>
> If this unique id is entered and found, I then want the associated
> variables $townname and $towntitlepic passed to the url
> www.freeweekends.co.uk/formreply.php
>
$townname='hello';
$dest="http://www.freeweekends.co.uk/formreply.php?townname={$townname}&pic={$towntitlepic}";
$gen_output=file($dest);

(but you might want to pass the parameters thru htmlentites first).

If you really want to POST instead of GET - see the curl functions in the
manual.

C.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация