Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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 assume you have the page coded in HTML. You should look at the usage of <input>. It will create a small textbox that you can use. I can also recommend that you make a dropdown curtain menu where the used can select year. Instead of typing whatever they want, you can't ever imagine what people might put in that box.
You should first get some basic understanding of the communication mechanisms between a user and a website.
For that you can read books and/or find this kind of information on the Internet. Try 'http', "web server', 'html' as search strings in a search engine or in Wikipedia for instance.
I assume you have the page coded in HTML. You should look at the usage of <input>. It will create a small textbox that you can use. I can also recommend that you make a dropdown curtain menu where the used can select year. Instead of typing whatever they want, you can't ever imagine what people might put in that box.
you mean like this?
[code]
<form>
echo -e "<p>Please Enter Year : \c<input type="text" name="Year" /></p> "
read Year
</form>
[code]
No. You cant mix html code with bash code, because the Apache server do not include a bash interpreter, thus it won't know what to do with the 'echo' command.
echo -e "Please Enter Year : \c"
read Year
echo -e "Enter Location"\ " : \c"
read Locat
to be able to display in webpage.. if basic php or html i already know..
what i want is. when i type the addrs it suddenly ask for year and location. after entered the year and location. it will display the output.
you can do this IF you make a webpage in HTML or PHP, but maybe you can open that webpage with a script?
i'm not sure, but it's maybe a suggestion....?!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.