![]() |
many input boxes that the user selects
hey
i want to give the visitor the ability to write in a TEXT FIELD the number of TEXT FIELDS he wants to generate thanks |
1 Attachment(s)
You can do either PHP way, which requires the page to reload, or the JavaScript way, which doesn't. I have shown you the PHP method below, as this is the easiest way, and the best way to understand how to do it:
html4strict Code:
php Code:
|
thanks :d
..... |
1 Attachment(s)
Sorry, I didn't see that this thread was specifically in the JavaScript forum. I have amended the script and added JavaScript capabilities. However, it's always good practice to have both methods in for if the user has JavaScript disabled, or perhaps unsupported by an ancient browser.
Take a look at the code and see what you think. Although, if you're new to this way of doing things, I would stick to the PHP approach as organising JavaScript files is a whole new arena. I was that silly once, and whilst I don't regret it because I learnt well from it, it's not something I'd recommend people repeat. There are better ways to learn, and that is through organising only HTML, CSS and PHP files, at the moment, then slowly progressing to other types of files such as JavaScript. The gradual approach, I feel, is far better. |
| All times are GMT. The time now is 10:33 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0