Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,154,669 members, 7,823,890 topics. Date: Friday, 10 May 2024 at 05:31 PM

Help On Javascript. - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / Help On Javascript. (567 Views)

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)

(1) (Reply)

Help On Javascript. by sunday478(m): 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)

Payment Platform To Use On Ecommerce Site? / Unlimited Browsing For Your PC / Extreme Website Makeover

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 11
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.