I sent some radio values and select box options to a PHP script but they dont seem to be available as scalar variables to my script. What should i do?
Thanks Zmodem, i was thinking Perl substring, that it went ahead 2 rows, not that thats how many rows it displayed.
i really need some help with this-please save me
Moderator: General Moderators
-
chris12295
- Forum Contributor
- Posts: 113
- Joined: Sun Jun 09, 2002 10:28 pm
- Location: USA
- Contact:
i really need some help with this-please save me
Last edited by chris12295 on Mon Jun 10, 2002 7:01 pm, edited 2 times in total.
Re: form vars u guys are awsome at this stuff!!!!
Did you edit your original post? Wow, it's Monday and I guess I'm easily confused..heh hehchris12295 wrote:I sent some radio values and select box options to a PHP script but they dont seem to be available as scalar variables to my script. What should i do?
Got some code to share with us so we can lock down your select/radio probs?
-
chris12295
- Forum Contributor
- Posts: 113
- Joined: Sun Jun 09, 2002 10:28 pm
- Location: USA
- Contact:
this is my form code
***FORM CODE***
<form name="form1" action="search.php" method="post">
<input type="text" name="text1">
<input type="text" name="keywords">
<input name="searchBy" type="radio" value="model">Part Model
<input name="searchBy" type="radio" value="manufacturer">Part Manufacturer
<input name="searchBy" type="radio" value="fname">Seller First name
<input name="searchBy" type="radio" value="lname">Seller Last name
<input name="searchBy" type="radio" value="email">Seller email
<input name="searchBy" type="radio" value="cat_id">Category
<input name="searchBy" type="radio" value="year">Part Year
<input type="submit" name="submit" value="Go">
</form>
In my PHP script i say: $query1="select * from user_Ads where $searchBy like '%$keywords%'";
<form name="form1" action="search.php" method="post">
<input type="text" name="text1">
<input type="text" name="keywords">
<input name="searchBy" type="radio" value="model">Part Model
<input name="searchBy" type="radio" value="manufacturer">Part Manufacturer
<input name="searchBy" type="radio" value="fname">Seller First name
<input name="searchBy" type="radio" value="lname">Seller Last name
<input name="searchBy" type="radio" value="email">Seller email
<input name="searchBy" type="radio" value="cat_id">Category
<input name="searchBy" type="radio" value="year">Part Year
<input type="submit" name="submit" value="Go">
</form>
In my PHP script i say: $query1="select * from user_Ads where $searchBy like '%$keywords%'";