Click to See Complete Forum and Search --> : email form?


ichiro829
03-26-2003, 10:13 PM
i need help with this form i am making. check it out here.. http://members.cox.net/level-10/reg.htm i got it emailing the info to my email account but it sends the info in one straight line. i want it to email the info to my account like "Contact Name: Kenny" next line down "Phone Number: 55555555555" and so on. anybody know how i can fix this problem?

thanks

Aronya1
03-26-2003, 10:22 PM
ichiro,

I'm not an expert, but I think the answer will lie in your CGI script. I'd suggest posting the code here.


Aronya1

ichiro829
03-26-2003, 10:26 PM
heres the source code from that site i posted. its pretty messy but im new at this hehe

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META name="GENERATOR" content="Microsoft FrontPage 5.0">
<title>Email Level-10</title>
</HEAD>
<BODY text="#FFFFFF" bgcolor="#000000">
<FORM action="/cgi-bin/readSend.cgi" method="post">
<INPUT type="hidden" name="TO" value="ichiro829@cox.net"><p>&nbsp;</p>
<p>Contact Name:&nbsp;&nbsp;&nbsp;&nbsp;
<INPUT size="17" type="text" name="BODY"></p>
<p>Phone Number:&nbsp;&nbsp;&nbsp; <INPUT size="17" type="text" name="BODY"></p>
<p>Email:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<INPUT size="17" type="text" name="FROM"> </p>
<p>Team Name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<INPUT size="17" type="text" name="SUBJECT"></p>
<p># of Players:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<INPUT size="17" type="text" name="BODY"></p>
<p>Are alls players UH students? (yes/no):&nbsp;&nbsp;
<INPUT size="17" type="text" name="BODY"></p>
<p>Captain:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<INPUT size="17" type="text" name="BODY"></p>
<p>&nbsp;</p>
<p><INPUT type="submit" name="submit" value="Send Info"></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</BODY>
</HTML>

Aronya1
03-26-2003, 10:33 PM
I meant the code from your CGI script: readSend.cgi. We can get the form code from your webpage.


Aronya1

ichiro829
03-26-2003, 10:36 PM
how can i get the readSend.cgi? that readSend.cgi is from my cable provider.. http://members.cox.net/cgi-bin/readSend.cgi do u have aim or icq so i could chat with you faster? if u dont mind..

Aronya1
03-26-2003, 10:51 PM
Sorry, no. I hate those apps. Won't use them.

I'd like someone else to chime in here with their opinion, but I think you need to ask Cox how to fix your problem. Or use another script altogether, like FormMail.

Good luck.

Aronya1

Jick
03-26-2003, 11:26 PM
You might try using hiddin fields and put the formatting in it but thats if the cgi supports it. Hope that helps. :D

ichiro829
03-28-2003, 04:44 PM
can i make it so that when somebody fills out the form, it will send it to two email addresses? would i need to add another line or edit this line <INPUT type="hidden" name="TO" value="ichiro829@cox.net">< ?

Jick
03-28-2003, 05:06 PM
I think you would add a comma and then another address like so:
<INPUT type="hidden" name="TO" value="ichiro829@cox.net,somebody@host.com">
Hope that helps. :D

ichiro829
03-28-2003, 05:15 PM
Originally posted by mjdimick
I think you would add a comma and then another address like so:
<INPUT type="hidden" name="TO" value="ichiro829@cox.net,somebody@host.com">
Hope that helps. :D

that didnt work, it says "No recipient has been specified." when i press send

Jick
03-28-2003, 05:35 PM
Try this.

<input type=hidden name="recipient" value="firstperson@host.com,secondperson@host.com">

or this

<INPUT type="hidden" name="recipient" value="firstperson@host.com,secondperson@host.com">

And if that does not work tell me. And don't forget to change 'firstperson' and 'secondperson' to your address. Hope that helps. :D

ichiro829
03-28-2003, 06:07 PM
nope it still does the same thing..

another thing..im tryin out this sample form i dled on the net and when i press send, it says "The requested method POST is not allowed for the URL /level-10/mail_form.cgi." any way to fix this problem?

jeffmott
03-28-2003, 07:59 PM
can i make it so that when somebody fills out the form, it will send it to two email addresses?You really need to read the documentation for the CGI script you are using to be able to answer this. If we can't see the script all we can do is guess.

Or use another script altogether, like FormMailPlease don't recommend anything from Matt's Script Archive. They are buggy and insecure. Even Matt no longer recommends his scripts.

<INPUT type="hidden" name="TO" value="ichiro829@cox.net">If this is how your script specifies recipients then you need to use a different script. It will allow spammers to use your site to send any number of messages to whomever they choose.