PDA

View Full Version : Multiple page form


lan
6-7-02, 11:48 AM
Does anyone know how to send a multi-page form, without CGI. I want to keep it really simple.

...any ideas?

Lana

BerksWebGuy
6-7-02, 12:26 PM
I would think...but I'm not sure...that you would needsome kind of script to carry the values from page to page. When doing a form...you are utilizing some kinda script anyway...might as well make it a multi-page one.

Good Luck

froggy
6-7-02, 03:38 PM
If your looking for a script to help you with this, then check out www.hotscripts.com................froggy.

bettyfordclinic
6-7-02, 08:33 PM
This may not help at all....but:

Could you just make the "submit" button into a link to the second page???
Then accept the two pages as sperate submissions??

<form name="FormName" action="(Empty Reference!)" method="get">

<a href="(Empty Reference!)"><input type="submit" name="submitButtonName"></a>

</form>

I could be wrong but it might be worth a quick look.

bfc

muijefr
6-8-02, 01:20 PM
For my edification what do you mean by "send a multi-page form, without CGI...I want to keep it really simple".

davidj
6-9-02, 01:32 PM
Javascript can read url strings. If you use a get for your action, all of your form values from the first page will be in the url string.

This page explains that: http://javascript.about.com/library/scripts/blquerystring.htm

Then you can make those url values as input type="hidden" in your current form so that it will be included in the submit to the last page.

I don't know if Javascript can read form information with a method post but I am 98% sure that it cannot because post places the info in the header of the message sent to the server. Without some form of cgi those values are not accessible.

I love http://www.pyrotomountain.com/

BerksWebGuy
6-9-02, 09:29 PM
Oh man...just use a CGI scipt. Its quick and easy. Put in a little effort and your visitors will be pleased.

muijefr
6-10-02, 07:22 PM
This is simple and does not use CGI but it is not two pages long.
Use something like this if you don't won't to access CGI but you still want to put an e-mail "non-form" on your web page and not just a "mailto:" link. Be sure you put your e-mail address in the form or Bruce will get your mail! He made it even more interactive by putting a javascript alert that pops up when you press the "send" button. Copy this to your own page for an interactive mailto: tag. As you can see this was lifted from Bruce-Hamilton.com or more specifically:

http://www.bruce-hamilton.com/tutorials/mailto.shtml


<form METHOD="POST" ACTION="mailto:bruce@bruce-hamilton.com" enctype="text/plain" onSubmit="window.alert('Confirmation: This form is being sent by e-mail.')">
<table cellspacing=1 cellpadding=1 border=0>
<tr><td>Name:</td><td><input NAME="username" size="30"></td><tr>
<tr><td>E-mail address:</td><td><input Name="usermail" size="30"></td></tr>
<tr><td>Subject:</td><td><input Name="Subject" size="30" value="mailto: form">
<tr><td>Home Page URL:</td><td><input NAME="URL" size="30" value="http://"></td></tr>
<tr><td colspan=2><textarea NAME="comment" ROWS="6" COLS="50">
Your comments here.
</textarea></td></tr>
<tr><td colspan=2 align=center><input TYPE=submit VALUE="Send"> * <input TYPE=reset VALUE="Clear"></td></tr>
</table>
</form>

View Resluts: http://www.the-ebiz.net/forum/LanasForm.html

lan
6-11-02, 10:01 AM
Thanks guys...I actually figured out something to do to solve my problem.

muijefr: when I said that I wanted to keep it simple, I guess I should have said "quick" for the time being.

BerksWebGuy: Since I am no where near an advanced web designer it may take me longer than some of you to understand things like CGI, etc. It's not that I do not want to put any effort into learning new things, because that is just the opposite. That's why I joined this forum.

Lana
:)

muijefr
6-11-02, 11:15 AM
Oh, I see.

Forsteen
6-11-02, 11:34 AM
Originally posted by BerksWebGuy
Oh man...just use a CGI scipt. Its quick and easy. Put in a little effort and your visitors will be pleased.

If cgi is easy for you can you look at this? I'm trying to figure out how someone could browse through their computer and send a file to my email along with text. I already have some clue with just sending text (see link), but I'm having trouble with this. I just need a better explaination that's all.
http://www.power-integration.com/cgi_help_page.htm

BerksWebGuy
6-11-02, 12:06 PM
I assume thats a program that you are trying to config. There a many scripts out there that allow visitors to upload files (any kind) to a temp folder and then email it to you. It kind of works like a simple 'form tag'. You are just added an attachment to the email.

Good Luck

lan
6-11-02, 12:49 PM
muijefr,

I guess I should start by saying what I am using the form for...

-the user fills out the form with information that they want on their business cards
-the form is sent in txt format
-using DesignMerge in Quark, I merge the the data sent from the form, right into the business card templates
------eliminates the need for me to typeset anything and therefore keeps the client responsible for any typos :p

The reason I wanted a multipage form was because I wanted to have a second page where the user could specify how many cards they wanted, special instructions, etc. So what I did instead was just leave it all in one form and edit how I setup DesignMerge to accept the data.

Did that make any sense at all???
Lana