Page 1 of 1
i really need some help with this-please save me
Posted: Mon Jun 10, 2002 4:53 pm
by chris12295
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.
Posted: Mon Jun 10, 2002 6:30 pm
by Zmodem
Hmm, close, but no cigar
in the statement LIMIT x,y:
x= The offset. This is the starting row
y = The number of rows you want displayed.
Rather than do what your doing, do it this way:
0,1
1,1
2,1
See if that works
Re: form vars u guys are awsome at this stuff!!!!
Posted: Mon Jun 10, 2002 6:43 pm
by Zmodem
chris12295 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?
Did you edit your original post? Wow, it's Monday and I guess I'm easily confused..heh heh
Got some code to share with us so we can lock down your select/radio probs?
this is my form code
Posted: Mon Jun 10, 2002 6:47 pm
by chris12295
***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%'";
Posted: Tue Jun 11, 2002 12:55 am
by volka
this is probably about the most asked question in this forum
read this