| | |
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 |
apache api array beginner binary body broken cakephp checkbox class cms code cron curl database date date/time delete display dynamic echo email error file files filter folder form forms function functions gc_maxlifetime global google host href htaccess html image include insert ip javascript joomla limit link list login mail memmory memory menu mlm msqli_multi_query multiple mycodeisbad mysql navigation oop parameter parsing paypal pdf php problem query radio random recourse recursion regex remote script search seo server sessions sms snippet source space sql static syntax system table thesishelp trouble tutorial update upload url validator variable video web webdesign wordpress xml youtube






