₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,108 members, 8,420,373 topics. Date: Thursday, 04 June 2026 at 05:58 PM

Toggle theme

Help On Javascript. - Webmasters - Nairaland

Nairaland ForumScience/TechnologyWebmastersHelp On Javascript. (632 Views)

1 Reply

Help On Javascript. by sunday478(op): 9:35pm On Nov 01, 2013
Hello all webmasters, thank y'all for ur help so far.

I have this challenge with Javascript, I want a loop of years that will be print out in the drop down menu
<select></select> or if you know other ways of going about it without getting to type it myself, pls help.

Q2
Someone have asked this question here before, I want a way in which a user get to fill a form which will have a next button, but the datas received will be posted to just one PHP file. E.g u are filling a form on a school portal, after filling all the fields, u click next and another form appears for u to continue filling, them after clicking submit it will be post to a file at the same time.
Re: Help On Javascript. by yawatide(f): 9:58am On Nov 02, 2013
1) IMHO, it probably makes sense to do this on the backend. For instance, what if javascript is turned off? Either way, the logic is the same:
a) Get the year, using the language's date library. Or just hardcode the year in mind (say 2020)
b) Store the year in a variable
c) Run your (for) loop like so:
for(i=0 (this could also be hardcoded to a particular number, say 1917); i <= (your year variable...could also have been hardcoded); i++) {
print i;
}

2) Looks like you want to use PHP's fopen(), or whatever function here
Re: Help On Javascript. by Successguilders: 12:30am On Nov 04, 2013
Just write all with php, and use html5 to cheeck the form.
1 Reply

Any Problem On Javascript?Any Problem On Javascript?Dhtml Quiz: How Will You Detect If A Browser Support Javascript From Php Code?234

Very Attractive Offer For Website Designer/administratorForum Posters WantedWeb Design And Free Hosting