Thread: Form Help
-
April 2nd, 2004, 03:07 AM #1
Form Help
Ok I'm trying to have a web page where I can have a name box and then a submit button. I want the submit button to add the name to a separate web page and add a counter.
Ex.
Box = type name --- Ralph
Submit button
next page shows
1. Ralph
When run again with name Steve the page will show
1. Ralph
2. Steve
any ideas on how to do this let me know thanks.
-
April 3rd, 2004, 12:46 PM #2
So, you are looking at permanently storing the data from the form on the server.
PHP does this quite easily if you are familiar with that program. Of course, any dbase program will store your info, but if you're only looking at a minut amount of data, it might be overkill.
-
April 3rd, 2004, 06:36 PM #3
basically what I'm trying to do is have a survey online. I want people to, if they agree to it sign the box and then hit a submit button, which will add their name to the list. BUT, be able to see the names of those who also agree with it. EX again
Survey here
Sign here ----box
Submit button
1) Ralph
2) James
3) Paul
4) Tom
5) Larry
etc. etc. etc.
When they hit the submit button it adds their names to the list as well.
-
April 3rd, 2004, 07:15 PM #4
How is your form being processed? Meaning - when they click on 'Submit' where is the information going to?
What you're going to need is coding to write the survey form data to a file. That file can store the names of the users that take your survey - although I would make it optional for the user. Upon completing the survey, the coding would write their name to the file, as well as read the existing contents of the file and print out the results to the browser.
Do you host your own web server or is it hosted?
-
April 4th, 2004, 02:50 AM #5Junior Member
- Join Date
- Apr 2004
- Posts
- 3
As mentioned above this can be easily done with server side programming...
Are you running your pages on a Linux, Unix, Windows server?
Depending on that you can use ASP, PHP, JSP, etc. to achieve what you need...
If you provide more info someone here can even post the code.
-
April 4th, 2004, 04:42 AM #6
i'm going to be hosting the web page through my own web server, running windows 2000 server. haven't decided on where the information is going to be going, reason for the advice on how to go about doing this.
-
April 4th, 2004, 11:57 AM #7Junior Member
- Join Date
- Apr 2004
- Posts
- 3
If you take the text file option, here are some examples, watch for permissions...
http://www.devasp.com/samples/writetofile.asp
http://support.microsoft.com/default...;en-us;q300982
http://nuts4asp.com/tutorials/WriteFile/index.asp
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)



LinkBack URL
About LinkBacks




Reply With Quote

Didn't like Transformers growing up. I was more into Speed Racer and DBZ.
Thread About Anime