| | |
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
| Thread Tools | Search this Thread |
# 5.2.10 alexa apache api array beginner binary broken cakephp checkbox class clean clients cms code cron curl database date directory display dissertation dynamic echo echo$_get[x]changingitintovariable... email encode error fairness file files folder form forms function functions google href htaccess html image images include indentedsubcategory insert ip javascript joomla legislation limit link local login mail memberships menu mlm multiple multipletables mysql mysqlquery newsletters oop open paypal pdf persist php problem provider query radio random recursion remote rss script search secure server sessions sms sockets source space spam sql syntax system table tutorial update upload url validator variable video web youtube





