| | |
submit onchange not working
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jan 2008
Posts: 16
Reputation:
Solved Threads: 0
Why isn't this working????
php Syntax (Toggle Plain Text)
Echo ' <form action="show.php" method="post" onChange="this.form.submit()"> <select> <option value selected>select</option> <option value="1">1</option> <option value="2">2</option> </select> </form> ';
Last edited by peter_budo; Nov 10th, 2008 at 7:44 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
if the form has any form field named 'submit' than just rename it to 'submit2' or anything else than 'submit'. run the code.
If it still doesn't works provide more detail about the code.
okay, i agree upon the previous reply.
If it still doesn't works provide more detail about the code.
okay, i agree upon the previous reply.
Last edited by nirbhab; Nov 10th, 2008 at 2:10 am.
change ur code with this........
it will work .......
it will work .......
php Syntax (Toggle Plain Text)
echo ' <form action="show.php" method="post" onChange="this.submit()"> <select> <option value selected>select</option> <option value="1">1</option> <option value="2">2</option> </select> <input type="submit" value="submit"> </form> ';
Last edited by peter_budo; Nov 10th, 2008 at 7:45 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Sharing Knowledge Is Better Than Any Other Thingz
•
•
•
•
change ur code with this........
it will work .......
php Syntax (Toggle Plain Text)
echo ' <form action="show.php" method="post" onChange="this.submit()"> <select> <option value selected>select</option> <option value="1">1</option> <option value="2">2</option> </select> <input type="submit" value="submit"> </form> ';
Replace your Double Quotes by Single Quotes, and vice versa.
php Syntax (Toggle Plain Text)
echo "<form action='show.php' method='post' onChange='this.submit()'><select><option value selected>select</option><option value='1'>1</option><option value='2'>2</option></select><input type='submit' value='submit'></form> ";
Regards...
Last edited by peter_budo; Nov 12th, 2008 at 5:28 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
IF SOMEONE FEELS THAT THEY HAD NEVER MADE A MISTAKE IN THEIR LIFE, THEN IT MEANS THEY HAD NEVER TRIED A NEW THING IN THEIR LIFE
•
•
•
•
Replace your Double Quotes by Single Quotes, and vice versa.
echo "<form action='show.php' method='post' onChange='this.submit()'><select><option value selected>select</option><option value='1'>1</option><option value='2'>2</option></select><input type='submit' value='submit'></form> ";
Regards...
![]() |
Similar Threads
- datagrid working but php_self problem (PHP)
- How to get the javascript objects in html body tag (JavaScript / DHTML / AJAX)
- uploading multiple files, 'post' not working off server (works fine off local host) (JSP)
- login box not working (JavaScript / DHTML / AJAX)
- dropdown not working (HTML and CSS)
- Urgent.....Dynamic Changes.... (JavaScript / DHTML / AJAX)
- Accessing DOM Objects (JavaScript / DHTML / AJAX)
Other Threads in the PHP Forum
- Previous Thread: Learning PHP...
- Next Thread: dynamic page
| Thread Tools | Search this Thread |
ajax apache api array arrays beginner binary broken cache cakephp checkbox class cms code confirm cron curl customizableitems database date display dynamic echo email error external file files folder form forms forum function functions google header headmethod howtowriteathesis href htaccess html iframe image include insert integration ip java javascript joomla limit link login loop mail malfunction menu method mlm multiple mysql neutrality oop paypal pdf php phpmysql play problem query question radio random recursion regex remote root script search select server sessions sms soap source space sql syntax system table tutorial update upload url validator variable video web xml youtube






