Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,194,297 members, 7,954,181 topics. Date: Friday, 20 September 2024 at 01:47 PM |
Nairaland Forum / Science/Technology / Webmasters / Help On Javascript. (583 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)
How Can I Highlight A Paragraph In My Blog This Way? / Can I Get A Reseller Gateway For As Low As 0.90k/unit Or Lower ? / A Fully-packaged Website, With One Year Hosting, At an Affordable Price
(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. 8 |