PDA

View Full Version : a form within a form


isabel ringing
02-27-2003, 11:58 PM
I would like to put a small form within an existing form. Is this possible?
the main form gets sent to an email address as an html page (using a cgi script called f2m.cgi). then the recipient would pick a checkbox and Submit would then send the form to another email address using Mailto:

chrismiceli
02-28-2003, 02:55 AM
are you asking if this is possible, if you are the answer is yes, it is called nested frames.

glenngv
02-28-2003, 07:57 AM
she is asking about forms not frames. :rolleyes:
you can't have a form within a form but you can have several forms like:

<body>
<form>

</form>
<form>

</form>
</body>

nickoli21
02-28-2003, 09:25 AM
Without digging out all the big black books....I have to agree. I don't think you can have a form within a form. If you somehow got it to go, it would complain about the variables. You can't transfer variables from one to the other. At least, not at the same time.

Nick

isabel ringing
02-28-2003, 04:28 PM
thanks to you all. that's what i suspected. My client insists that it is possible for the recipient of the email (which is actually the contents of a form) to be able to simply click a checkbox and send the email on to someone else. the problem is the script I'm using only sends the content of the area between the form tags. therefore, if I want to include the checkboxes as submittable data, they have to be within the original form. I don't know any way to put the checkbox form in there. Any ideas? Hope this makes sense.

isabel ringing
02-28-2003, 04:31 PM
I just realized that what I just wrote isn't all that cleaar as to clicking the checkbox and sending the email on. What I am actually trying to do is collect form info, send it to the first recipient, who would click a checkbox indicating if the data was OK and then forward that same email on to someone else, who would actually act on the form info.

nickoli21
02-28-2003, 11:54 PM
I have never tried using a form that way, but I think there might be a way. I haven't tried this yet, so don't quote me too strictly.

Now, let's see if I can get the idea across in type.

On the web page, a user enters data in a form and clicks the submit button. Each area that the user entered data in has been assigned a variable. That variable is then passed to a document that is located on the server. The data that was entered is placed in the document where the variables are located. Cgiemail then sends that document to a designated email address as an email. Are you still following? Of course you are... You already have this part done probably.

Anyway, what if you placed html tags in the document that is to be sent. Assumming that the person the email is going to has HTML capable email, it should show up as a html email. If you put the pass-on (check box, form, etc.) in the document that is sent to the second person, they should be able to check the box and click on a new submit button. The data from this new form would now be sent back to the server and be entered into a new data document. This new document would be sent to whomever it was designated to in the document. And so on done the line.

Now, this is all in theory. Hopefully it works. I'll have to try it myself. You might get to it before I get the time to try. If this version doesn't work you might be able to incorperate a little php to help it along.

If I wasn't clear in any of this, let me know.

Nick

Nightfire
03-01-2003, 01:58 AM
What nickoli21 is trying to say (I think) is add the form inside the html email that is being sent, with all the variables already filled in.

nickoli21
03-01-2003, 06:29 AM
Yes :) My words in much simpler form. Sometimes I do get a little wordy.

Nick

nickoli21
03-03-2003, 07:20 AM
Isabel,

Did you give it a try? I haven't had the time yet and I'm curious as to if it works that way.

Nick