Reply to Posting to a URL

Your name:

Reply:


Posted by Alec on 07/03/06 19:48

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

Have passed variables to a different URL within a form submit, but how
do I do this within a normal condition statement??

Code ---------------------------

<?php $townref = $_GET['town']; echo $townref; ?>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get">
<p align="center">&nbsp;
<p align="center">&nbsp;<font color="#FF0000">town id</font><input
type="text" name="town" size="20" value="" />&nbsp;
<input type="submit" value="GO" />
</p>
</form>
<?php
$resulttown = @mysql_query ("SELECT townname, townref, towntitlepic
FROM townid_uks49179 WHERE townref='$townref'");
while ($row = mysql_fetch_array($resulttown))
{
$townname = $row['townname'];
$townref = $row['townref'];
$towntitlepic = $row['towntitlepic'];
}
?>

<?php if (isset($GET['resulttown'])) ?> ???????? URL formreply.php and
variables ???????


Many thanks

Alec

[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

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