Uggghh Button is not working in IE

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
motleycrewl
Forum Newbie
Posts: 8
Joined: Tue Mar 04, 2008 2:16 pm

Uggghh Button is not working in IE

Post by motleycrewl »

Man I have no clue what im doing wrong. Everything works just as it should in Firefox, but when I tried it in IE it does nothing. Heres my code:

if (isset($_POST['submitted'])) {
echo "<script language='javascript'>";
echo "window.location='confirmation.php?'";
echo "</script>"; }

echo "
<form action='' method='POST'>
<input type='submit' value='Confirm Reservation' '/>
<input type='hidden' value='1' name='submitted' /> </form>";

It must be something small? Any clues? Thanks a big one guys.
User avatar
vargadanis
Forum Contributor
Posts: 158
Joined: Sun Jun 01, 2008 3:48 am
Contact:

Re: Uggghh Button is not working in IE

Post by vargadanis »

Hi!

Code: Select all

if (isset($_POST['submitted'])) {
echo "<script language='javascript'>";
echo "window.location='confirmation.php?'";
echo "</script>"; }
 
echo "
<form action='" . $_SERVER['PHP_SELF'] . "' method='POST'>
<input type='hidden' value='1' name='submitted' />
<input type='submit' value='Confirm Reservation'/>
</form>";
This one worked for me...

One more thing... If you post a code, quote it as code!
Post Reply