Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a HTML script as below , user can select volvo , saab , opel , if I would like to add a function , if the user select Volve , then do xxxx , if the user select Saab , then do yyy , if the user select Opel , then do zzz , what can I do ? thanks
Hi, you can find a couple of tutorials in making forms in HTML in w3schools.com website. They also have a section there where you can see a couple of stuff regarding javascript.
If I get right what you want to do though, something like this comes to mind:
Hi, you can find a couple of tutorials in making forms in HTML in w3schools.com website. They also have a section there where you can see a couple of stuff regarding javascript.
If I get right what you want to do though, something like this comes to mind:
<form action="demo_form.asp" method="get">
First name: <input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br>
<input type="submit" value="Submit">
</form>
thx reply ,
I really not know how to do it , what is the program demo_form.asp ? what I would like to do is if the user select volvo , then run script 1 , if the user select saab , then run script 2 , can advise what can I do ? could please advise the rest of the program ?
thanks a lot
I really not know how to do it , what is the program demo_form.asp? what I would like to do is if the user select volvo , then run script 1 , if the user select saab , then run script 2 , can advise what can I do ? could please advise the rest of the program ?
thanks a lot
As you've been asked SEVERAL times before, you need to spell out your words.
And the demo_form.asp file is a SAMPLE name that was on the tutorial website. It was given to you so you could learn how to do it yourself. We are NOT going to write code for you. You've been given the answer and a how-to guide...now it's up to you to actually do it. And as has been pointed out before...you have been here for TEN YEARS NOW. At some point, you should be able to write your own scripts and look things up for yourself. To give that a little bit of perspective, ten years is enough time to:
Start and finish high school
Start and finish college
Get a masters degree
There are many, MANY easily-found examples on how to do what you want, in JSP, ASP, HTML, PHP, etc., that Google can point you to. If you're not a programmer and not familiar with this, then perhaps hiring a consultant would be best, if you don't want to learn how to do it yourself.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.