HTML email cgi Form?

liunx

Guest
Hello,<br />
<br />
Is there a way to create a working form in html emails?<br />
<br />
For example, I used html to create a form to vote for something. Using the cgi bin I set up the form so that when they clicked the submit button it would send what is filled out to my email address.<br />
<br />
The problem is, it is difficult to actually fill out the form through the email window and when I click submit I get an error message that says the form was empty, even if I managed to fill it out.<br />
<br />
Is it at all possible to make a form that they can fill out and submit through the email that I send or should I just keep the form online and send them to the page?<br />
<br />
Thanks for your help. :) <br />
<br />
~~Malt~~<!--content-->I would think that if this was possible, we'd all have seen numerous emails in our own mailboxes with forms to fill out. But, hey! Maybe this is just one of those "Why didn't I think of that?" ideas.<br />
<br />
Does your submit button call the cgi script with an absolute path to your server, or is it using a relative path?<br />
<br />
What makes it difficult to fill out the form in email?<br />
<br />
What does a person do if their email app doesn't support HTML?<!--content-->Here's another idea.<br />
<br />
You're sending a form in an email, asking to have it filled out, then processed via cgi & emailed to you. What if you attacked it from a different direction?<br />
<br />
Send an email that includes a mailto: hyperlink. Set up the link to create a form in the body of the new message. Then the user completes the form there & just sends the message. I don't know if you could create a true 'form' that way, but you could format the message in such a way that would allow space for the user to fill in the blanks.<!--content-->That's a good idea, I will have to try that. I imagine it would require a script of some sort? Unfortunately I don't think I'm familiar with writing those enough to do that. I was thinking that my last resort is to just send them to a web page to fill it out. That's what would happen if their email doesn't support html.<br />
<br />
The difficulty with filling it out is that it won't let you type in the fields... I don't know what I did the one time that I was able to type in there, but it would be too annoying for the recipiant when my intension was to make things easier.<br />
<br />
Here is the code if it helps to see it for the form (it's just a test one for now while I was trying to get it to work):<br />
<br />
<FORM METHOD="POST" action="http://www.edpress.org/cgi-bin/gmailer.asp" onSubmit="" webbot-action="--WEBBOT-SELF--"><br />
<b> <br />
<input type="hidden" name="TGsubject" value="Board Ballot Vote"><br />
<input type="hidden" name="TGredirect" value="http://www.edpress.org/board/votethanks.htm"><br />
<input type="hidden" name="TGorder" value="name,title,company,email,approve,notapprove"><br />
</b> <br />
<BLOCKQUOTE> <br />
<TABLE><br />
<TR> <br />
<TD ALIGN="right"> <p><b><a name="Name">Name</a></b></p></TD><br />
<TD> <b> <br />
<INPUT TYPE=TEXT NAME="name" SIZE=35><br />
</b></TD><br />
</TR><br />
<tr> <br />
<TD ALIGN="right"> <p><b>Title</b></p></TD><br />
<TD> <b> <br />
<INPUT TYPE=TEXT NAME="title" SIZE=35><br />
</b></TD><br />
</tr><br />
<TR> <br />
<TD ALIGN="right"> <p><b>Company</b></p></TD><br />
<TD> <b> <br />
<INPUT TYPE=TEXT NAME="company" SIZE=35><br />
</b></TD><br />
</TR><br />
<TR> <br />
<TD ALIGN="right"> <p><b>E-mail</b></p></TD><br />
<TD> <b> <br />
<INPUT TYPE=TEXT NAME="email" SIZE=25><br />
</b></TD><br />
</TR><br />
</TABLE><br />
</BLOCKQUOTE> <br />
<p> <br />
<label></label><br />
<label> <br />
<input name="approve" type="checkbox" id="approve" value="I<br />
approve"><br />
I approve</label><br />
<label></label><br />
</p><br />
<p> <br />
<label> <br />
<input name="notapprove" type="checkbox" id="notapprove" value<br />
"I do not approve"><br />
I do not approve</label><br />
<label></label><br />
</p> <br />
<p align="center"><b> <br />
<INPUT name="SUBMIT" TYPE=SUBMIT VALUE="Vote"><br />
<INPUT name="RESET" TYPE=RESET VALUE="Reset"><br />
</b></p><br />
</FORM><br />
<br />
<br />
Thanks, <br />
~~Malt~~ :D<!--content-->Hmmm, now that I think of it, I have seen a usuable form in an email before. It was set up at the bottom and you could fill in your friend's email and click the submit button and it would forward it on to your friend. I think php may have been involved somehow? However, I know absolutely nothing about php.<br />
<br />
~~Malt~~<!--content-->Did some research on the web, but didn't find anything. I know there has to be someway.<!--content-->
 
Back
Top