| | |
Save button not working in Firefox or Chrome
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Feb 2009
Posts: 1
Reputation:
Solved Threads: 0
Hi,
I've written a php code where I need to save the data entered in a form to the mysql database.
For that I'm using the following
When the user clicks on "Save" in IE it works fine - the data is saved and the user is redirected to updated view of the webpage. But when this webpage is accessed via other browsers like Firefox or Chrome the Save button simply doesn't work when I click it. What could be the problem
I've written a php code where I need to save the data entered in a form to the mysql database.
For that I'm using the following
$strSaveTD = "<input type = button id=btnSave value=Save onclick='checkform(" .$iMode. "," .$iLevel. ",1)'>"; When the user clicks on "Save" in IE it works fine - the data is saved and the user is redirected to updated view of the webpage. But when this webpage is accessed via other browsers like Firefox or Chrome the Save button simply doesn't work when I click it. What could be the problem
Last edited by peter_budo; Feb 21st, 2009 at 5:03 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Whats with the lack of quotes on there? Try this:
As long as you escape the quotes it will work, the above will print the code as you would expect it to be in HTML (without the backslashes)
php Syntax (Toggle Plain Text)
$strSaveTD = "<input type=\"button\" id=\"btnSave\" value=\"Save\" onclick=\"checkform($iMode, $iLevel, 1)\">";
As long as you escape the quotes it will work, the above will print the code as you would expect it to be in HTML (without the backslashes)
Last edited by Will Gresham; Feb 19th, 2009 at 6:11 pm.
AJAX is not a programming language, scripting language or any other sort of language.
It is acheived by using JavaScript http functions.
So, AJAX = JavaScript.
It is acheived by using JavaScript http functions.
So, AJAX = JavaScript.
That section of code will not work if you do not have javascript enabled. So make sure javascript is also enabled in Firefox and Crome
Try not to bump 10 year old threads as it can be really annoying.
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
![]() |
Other Threads in the PHP Forum
- Previous Thread: phploginform
- Next Thread: Categories SubNav
| Thread Tools | Search this Thread |
apache api array beginner beneath binary broadband broken button cakephp checkbox class cms code countingeverycharactersfromastring crack cron curl database date decode display dynamic echo email error fcc file files folder form forms freelancing function functions google href htaccess html image include incode insert integration ip javascript joomla limit link login mail match menu method mlm mod_rewrite multiple mysql oop pageing pagerank paypal pdf php problem protocol query radio random recursion recursiveloop remote script search server sessions sms smtp soap source space sql strip_tags support! survey syntax system table template tutorial update upload url validator variable video virus web window.onbeforeunload=closeme; youtube






