Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data not being sent with form and one other problem

Status
Not open for further replies.

mbaddar

Programmer
May 10, 2001
120
US
Hi,

I'm having two problems with my form. The first problem is that the data from the form is not being submitted with the email. The second problem is that right after the submit button on the form is pressed an email window (either outlook or aol mail) pops up and a user has to click the send button on the window for the mail to be sent. It looks very clumsy. Is there anyway to avoid having this email window pop up and just have the form and data be sent automatically?

I would like to use a perl/cgi script to handle this but I'm using a web hosting service and they don't support this. So, I guess I have to use the mailto and I'm not having any luck with it.

Here's a sample of my code below:

<html>
<body>
<form action=&quot;mailto:service@url.com&quot; method=&quot;post&quot; enctype=&quot;text/plain&quot;>
<input type=&quot;text&quot; name=&quot;zip&quot; size=&quot;10&quot; maxlength=&quot;11&quot;><input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;Submit this form&quot;>
</form>
</body>
</html>

Thanks for any help anyone can provide,
MBaddar
 
You will need to use a script to avoid that annoying popup. If your site is on Windows check about using asp. If you are on a Unix box that supports perl your hosting company may already have a Form Mail script. Otherwise check:
This is very widely used on the Internet, is easy to setup and is FREE. DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
Hi Deziner,

Thanks for the response. I understand what you're saying. The problem I have is that the web hosting company we're currently using does not support asp pages (so that rules out CDONTS, etc). Also, they will not allow us to upload any perl scripts to a cgi directory (we went with a bargain hosting service and now wish we didn't). I assume I would have to do this for option number two (upload the perl script to a cgi directory)?

If I'm correct in my assumption above, do you know of any other options? I mean, could we possibly put a perl script on some other server (from another hosting service) that could be configured to send the form results to our email account. I'm really not a web programmer. Would something like this even work? Are there any other options along these lines that you're aware of?

Thanks very much. This is driving me crazy.
Mbaddar
 
Yes that can be done exactly. I actually have clients that pay me $7 month to do just that. They bounce scripts off of my cgi-bin. These are people I know very well that I can trust with spam and stuff. Find someone you know that has cgi access. Then your form action would look like
DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
Hi Deziner,

Thanks for the info, that helps.

Thanks,
MBaddar
 
info@dezinepost.com DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top