Hi,
I am hoping you guys can point me in the right direction
I've created a page that contains a form and when you submit the form the page calls itself. The problem is that when you hit enter it completely ignores everything you have filled in in the form.
Here is the code (the page is called images.php):
<br /><form method="post" action="/images.php"><br /><select name="ImgType"><br /> <option value="Photo Object" <br /> <?php if ($ImgType == 'Photo Object') {echo('SELECTED') ;} ?><br /> >Photo Objects</option><br /> <option value="Stock Photo" <br /> <?php if ($ImgType == 'Stock Photo') {echo('SELECTED') ;} ?><br /> >Photos</option><br /> <option value="Vector" <br /> <?php if ($ImgType == 'Vector') {echo('SELECTED') ;} ?><br /> >Vector Clipart</option><br /></select><br /><span class="regular">Search by Keyword:</span><br><br /><input type="text" name="keyss" value="<?php if ($submit) {echo $keyss ;} ?>"><br /><input type="submit" name="submit" value="Go!"><br /></form><br /><br /><?php<br />if (!$submit) {<br />Do Something<br />}<br />else {<br />Do Something Else<br />};<br />
Any ideas?