You are here: submit button works but not image IE/Firefox « All PHP « IT news, forums, messages
submit button works but not image IE/Firefox

Posted by Matt on 08/08/06 23:45

I have an issue when trying to use an image type Submit for a search.

The code below works fine in Firefox 1.5.0.6 but not in IE7 Beta 3

<form method="post" action="<?php echo $PHP_SELF?>">
Search Edinburgh

<!--<input type="Submit" name="search" value="Search">-->
"Search" button commented out, works in both IE7 Beta 3 and Firefox 1.5.0.6

<input type="Text" name="srchtxt" value="Enter Search Text">

<input type="image" src="images/search.gif" name="search">
"Search" image works in Firefox 1.5.0.6 but not IE7 Beta 3

</form>

<?php
if ($_POST['search']) {

$srchtxt=$_POST["srchtxt"];
echo "Results for \"$srchtxt\"<br /><br />";
include ("../../include/search.php");
} else {
include ("../../include/show.php");
}
?>

It seems the code isn't making it into the true part of the if loop so is
always executing the else clause.

Any ideas?

Regards
Matt



"I'm an idealist. I don't know where I'm going, but I'm on my way." - Carl
Sandburg http://clicktowalk.com Page design © Matthew McCabe -
http://mattmadethis.com Site hosted by Xeriom Networks -
http://xeriom.net/in/1019

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация