₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,502 members, 8,512,198 topics. Date: Tuesday, 03 November 2026 at 03:01 AM

Toggle theme

Help On Javascript. - Webmasters - Nairaland

Nairaland Forum › Science/Technology › Webmasters › Help On Javascript. (645 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? • 2 • 3 • 4

Iwriter Offers Amazing Opportunities For Writers And Requesters • Learn Website Designing Live Online And Offline With Ease No Access Fee • How To Get Facebook Fan Page Likes (see Prove In Picture)