Hello,
I am trying to submit an HTML form with 2 variables to a PHP page for querying my data base and displaying the results based on the 2 variables, as well as echoing one of the variables at the top of the page for the title. I want to do this without using java script.
The 2 variables are: "year" and "make".
The "make" variable is to be echo'd on top of the page for the title.
I have one form with 1 text field (this is the "year" variable) and 2 separate "submit" buttons, which are the "make" variables, each "submit" button has a different value.
<form name="year" action="cat_id.php">
<p>
<input name='year' type='text' size="6" maxlength="4">
<font color="#000000" size="2" face="Arial, Helvetica, sans-serif">Enter
Year</font></p>
<p><INPUT type="submit" name="make" value="audi">
<INPUT type="submit" name="make" value="bmw"> </p>
</form>
This works perfectly and passes both variables to the PHP page for results, as well as puts the "make" variable on top of the page as the title....
However,
I want to use images for the "submit" buttons instead of the lame default-grey ones!
When I do this, both of the submit-image buttons do not pass their variables anymore and the year is the only variable that gets passed?
This produces the same result with either submit-button clicked?
<form name="year" action="cat_id.php">
<p>
<input name='year' type='text' size="6" maxlength="4">
<font color="#000000" size="2" face="Arial, Helvetica, sans-serif">Enter
Year</font> </p>
<p><INPUT type="image" name="make" value="audi" src="images/co_logos/audi.jpg" >
<INPUT type="image" name="make" value="bmw" src="images/co_logos/bmw.jpg"> </p>
</form>
How Can I fix this to function with "image-submit buttons" as it does with the lame grey submit buttons?
What I really would like, is to use a "rollover" image for each submit button, but I have not even tried that one yet!!!?