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.
Navigation:
[Reply to this message]
|