Click to See Complete Forum and Search --> : In need of a simple script
maxxx
09-02-2003, 08:26 PM
I have been looking for a script (saw it in the past - but lost it!) that will allow you to take information gathered in a 'form' layout and when you click submit it will transfer to the next page where ADDITIONAL information can be entered and when complete the entire message (from both pages) can be sent (emailed) via cgiemail. Sounds rather simple, I can modify OK but I'm not quite that sharp to start cold...
Thanks a TON,
MAXXX
The "script" of which you speak, is merely one in which utilizes hidden form fields to pass form field data from screen to screen. The final subroutine would then actually "submit" all of the user input to the program for processing...whether, logging it, mailing it or any other combination.
maxxx
09-04-2003, 03:30 PM
Sounds simple - this gives me hope - but I'm still a bit in the dark. Any guidance on how this might be done. Again I'm good at polishing but getting started is still new to me...
Thanks
Define your form fields, with names
<input type="text" name="the_name">
...etc.
Define which fields are going to be on screen 1
Define which fields are going to be on screen 2
maxxx
09-05-2003, 08:07 AM
I have the input down but my problem is getting the input info to appear in the next screen....
Thanks
Maxxx
...what I meant was for you to post that info, so I could put together a little script...then you could see how it's done...
maxxx
09-05-2003, 09:06 AM
OK - this is what I have...
<HTML>
<HEAD>
<TITLE>Template</TITLE>
</HEAD>
<BODY>
<FORM ACTION="two.html" NAME="form1">
Name: <INPUT TYPE="text" SIZE=30 NAME="name">
<P>
Email Address: <INPUT TYPE="text" SIZE=30 NAME="email">
<P>
Question?
<INPUT TYPE="radio" NAME="answer" VALUE="yes" CHECKED> Yes
<INPUT TYPE="radio" NAME="answer" VALUE="no">No
<P>
<INPUT TYPE="submit" VALUE="Submit">
</FORM>
</BODY>
</HTML>
...ok, is the name and email the first screen...and the radio buttons the second...or is this just the first..?
...you said you wanted 2 screens, right?
maxxx
09-05-2003, 10:23 AM
The 'name', 'email' and 'answer' are all part of screen 1. That info (name, email, and answer) is what needs show on screen 2. Sorry to be so dense but this is all new to me!
ok...sorry for the delay, it's been hectic here...
I used your exact form, except I added method="post" and I've set up an example at the link below:
http://cycocity.com/maxxx/maxxxform.htm
it is a very simple, but workable example...btw it mails it to me, as of now...
let me know what you think...
maxxx
09-05-2003, 02:29 PM
This is perfect! What does the maxxx.pl in the cgi-bin look like?
Thanks
...got your mail, maxxx
is that your real email address...?
maxxx
09-05-2003, 02:41 PM
I double checked - Oppps! not ff its rr...