| | |
need help in php forms..plz
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Dec 2008
Posts: 38
Reputation:
Solved Threads: 0
hi there ...
i want to Handel a select field in php but i could not ..so i was wondering if someone can help....
what i want is there will numbers from 3 to 40 listed in select field and when user select 3
3 text box will appear and if he select 10 then 10 box appear ....and so on
thanks in advance...
i want to Handel a select field in php but i could not ..so i was wondering if someone can help....
what i want is there will numbers from 3 to 40 listed in select field and when user select 3
3 text box will appear and if he select 10 then 10 box appear ....and so on
thanks in advance...
•
•
Join Date: Dec 2008
Posts: 20
Reputation:
Solved Threads: 1
PHP Syntax (Toggle Plain Text)
<html> <head> <script language="JavaScript"> function make_textbox(no) { if(no < 1) return false; var my_textbox = ""; for(var i=0;i<no;i++) { my_textbox += "<br>Text Box "+eval(i+1)+": <input type='text' name='textfield["+i+"]'>"; } document.getElementById("text_id").innerHTML = my_textbox; } </script> </head> <body> <form name="myfrm"> Select Number Of TextBox : <select name="select_num_text" onChange="JavaScript:make_textbox(this.value);"> <option value="">Select</option> <?php for($i=3;$i<=40;$i++) { echo "<option value='".$i."'>".$i."</option>"; } ?> </select> <br> <div id="text_id"></div> </form> </body> </html>
-- Manish Singh
manish.s@neuralit.com
manish.s@neuralit.com
•
•
Join Date: Dec 2008
Posts: 1
Reputation:
Solved Threads: 1
and another one with jQuery ( my suggest : learn it!! 
preview: http://lostinchevrolet.co.cc/wp-cont...ds/wwwmadeasy/
download: http://lostinchevrolet.co.cc/wp-cont...wwwmadeasy.zip

preview: http://lostinchevrolet.co.cc/wp-cont...ds/wwwmadeasy/
download: http://lostinchevrolet.co.cc/wp-cont...wwwmadeasy.zip
•
•
Join Date: Dec 2008
Posts: 20
Reputation:
Solved Threads: 1
Do you want same out put using jquery ?
if yes i will be happy to help...
if yes i will be happy to help...
-- Manish Singh
manish.s@neuralit.com
manish.s@neuralit.com
![]() |
Similar Threads
- How can fix the problem? (JavaScript / DHTML / AJAX)
Other Threads in the PHP Forum
- Previous Thread: DIV Help
- Next Thread: Urgently need -php script for searching image
Views: 1006 | Replies: 17
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date directory display download duplicates dynamic echo email error execution file files folder form forms function functions google href htaccess html htmlspecialchars image include insert integration ip java javascript joomla jquery limit link login loop mail menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php phpvotingscript problem query radio random recursion regex remote script search select server session sessions sms soap source space speed sql structure syntax system table tutorial update updates upload url validation validator variable video web xml youtube





