| | |
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 |
.htaccess action ajax apache api array auto beginner binary bounce broken cakephp checkbox class cms code cron curl database date display dynamic echo email error errorlog file files folder form format forms function functions google href htaccess html image include insert integration interactive ip java javascript joomla limit link login loop mail malfunctioning masterthesis menu mlm mod_rewrite multiple mysql nodes oop paypal pdf php popup problem query radio ram random recursion reference regex remote return script search server sessions sms soap source space sql syntax system table tutorial unset update upload url validation validator variable video web websitecontactform xml youtube





