Re: problem with IE and php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



PHP doesn't really have anything to do with IE or Firefox working or failing to work, it's all about the HTML that PHP generates.

What does your <form> tag look like?  That's probably more the issue than your button or anything having to do with PHP.

If you have no <form> tag, then the browsers might be trying to figure out what you really meant to do.  This could be trying to submit the form data to the current page ("yourscript.php") or could be trying to submit to the default document in that folder (possibly "index.htm" or "index.html" or "default.htm" or something like that).

If you don't have a <form> tag, try something like this:

<form action="yourscript.php" method="POST">
<input type="submit" name="submit" value="Commit">
</form>


Changing "yourscript.php" to your script name of course, and you can use either POST or GET for the method depending on what you want to do.

If that didn't help, please post more of your code.

-TG


= = = Original message = = =

Hi all,

I running two php web page...therefore the page name has the ".php" on the 
end.
The first page contains a form with a submit button at the botton.  That 
submit button actions the second ".php" page.

When I use my firefox browser everything works fine.
When I use Internet Explorer, the submit button does not work.

the button is the following:
<tr><td>
<input type="submit" name="submit" value="Commit">
</td></tr>

Could the html be treated differently when there is php around it or maybe 
when we use ".php" could the html be treated differently?

Oh yeah, I created a duplicate of the pages with no php and had the two 
pages marked as ".html" and the button worked fine.

Any help would be great.

CHeers
Phil

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux