English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories
0

How do you make a form where you type data in and it brings it onto another page where it permanently stays there (not getting erased when you exit the browser) Pretty much like how I'm posting this question and how you will post the answer. Either show me how to do it with Dreamweaver or give me the code

2006-10-22 09:42:10 · 2 answers · asked by Andy 3 in Computers & Internet Programming & Design

I already have a server to work with-just give soem coding I can use!

2006-10-22 09:52:02 · update #1

2 answers

The form itself is easy. You can set that up with Dreamweaver.
On the Form tag there are two requirements.
1) Action - This is either the next page to receive the data or a Perl cgi script to process the data.
2) The type of processing the form will use - This is either GET or POST. Get has a limit to the amount of data that can be passed as it uses the web address line to pass data to the next web page. Also this data is visible. If you have a short form and don't care who sees the data then use GET and have the next web page process the query string to get the fields.
In Javascript you use the following:-
var data1=window.location.search;
If you use POST then there is no limit to the amount of data that can be passed but you will need a server program to handle the processing.

Without knowing what languages you know it is hard to just give you the code.

2006-10-22 11:10:31 · answer #1 · answered by AnalProgrammer 7 · 0 0

You can't do it with Dreamweaver. You need to write a script and have access to a server to run it on. Use Perl, PHP, or Python.

P's

2006-10-22 16:49:50 · answer #2 · answered by jacinablackbox 4 · 0 0

fedest.com, questions and answers