RE: [PHP-DB] PHP and mySQL help!
| From: | John W. Holmes | Date: | Sun, 12 Jan 2003 20:19:21 +0000 |
| Subject: | RE: [PHP-DB] PHP and mySQL help! | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-24791@lists.php.net to get a copy of this message | ||
It looks like the problems is because $date and $host are in different
<form> tags. So if one is set, then the other won't be.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
> -----Original Message-----
> From: Dzung Nguyen [mailto:dunguyen@iol.unh.edu]
> Sent: Friday, January 10, 2003 1:33 PM
> To: holmes072000@charter.net
> Cc: php-db@lists.php.net
> Subject: Re: [PHP-DB] PHP and mySQL help!
>
> Thanks for the quick reply! Perhaps I should describe my problem more
> specifically so that u could have a better idea:
>
> The code on PHP page to create forms for users to input field names:
>
> $tempdate = $date ;
> $tempselect = $select ;
> echo "<font size=$fontsize-1>Choose date<br></font>
> <form action=\"build_form.php\" target=\"_top\" method=get>
> <input type=hidden name=\"select\" value=\"$tempselect\">
> <input type=hidden name=\"order\" value=\"$order\">
> <input type=hidden name=\"ordertwo\" value=\"$ordertwo\">
> <input type=hidden name=\"way\" value=\"$way\">
> <input type=hidden name=\"waytwo\" value=\"$waytwo\">
> <input type=\"text\" name=\"date\" value=\"$tempdate\"
> size=17
> maxlength=10></form>" ;
> echo "</table>" ;
>
> $temphost = $host;
> echo "<font size=$fontsize-1>Choose host<br></font>
> <form action=\"build_form.php\" target=\"_top\" method=get>
> <input type=hidden name=\"select\" value=\"$tempselect\">
> <input type=hidden name=\"order\" value=\"$order\">
> <input type=hidden name=\"ordertwo\" value=\"$ordertwo\">
> <input type=hidden name=\"way\" value=\"$way\">
> <input type=hidden name=\"waytwo\" value=\"$waytwo\">
> <input type=\"text\" name=\"host\" value=\"$temphost\"
> size=17
> maxlength=10></form>" ;
> echo "</table>" ;
>
> I then would concat the values to query the database as follow:
>
> echo "<a
>
href=\"build_form.php?select=all&date=$date&host=$host&order=$order&orde
rt
> wo=$ordertwo&way=$way&waytwo=$waytwo\"
> target=\"_top\">
>
> My problem right now is that I can't seem to keep both values. If one
> value is update (host for example), the other value (date) is no
longer
> set???
> Thanks again for your help.
>
>
> --
> Dzung V. Nguyen email: dunguyen@iol.unh.edu
> Alpha Linux Group –›x]¢XV
> øÎW87íhttp://linux.iol.unh.edu/clp
> InterOperability Laboratory
> University of New Hampshire phone: (603) - 862 - 0401
> Durham, NH 03824 fax : (603) - 862 - 4181
>
>