View previous topic :: View next topic |
Author |
Message |
dougsapp
Joined: 07 Mar 2007 Posts: 5
|
Posted: Wed Mar 07, 2007 1:57 pm Post subject: Form Mail |
|
|
My code will not send. http://bigdogvideoblog.blogharbor.com/blog/_WebPages/bbbb.html
<form method="post" action="http://tools.blogharbor.com/cgi-bin/FormMail.pl"><input type="hidden" value+ in recipient/allow_mail 292893 name="recipient" value="292893 dougsapp@gmail.com name=recipient>" />
<input type="hidden" name="subject" value="Feedback Form Example 3" />
<input type="hidden" name="required" value="Contact Name, Business Name,email,bussiness address,phone" />
<input type="hidden" name="return_link_url" value="http://www.blogharbor.com" />
<input type="hidden" name="return_link_title" value="Back to BlogHarbor Home Page" />
<input type="hidden" name="bgcolor" value="#ffffe7" />
<table border>
<tr>
<tr>
<td>Contact Name: </td>
<td><INPUT TYPE="text" NAME="name" SIZE="17">
</tr>
<tr>
<td>Business Name: </td>
<td><INPUT TYPE="text" NAME="name" SIZE="17">
</tr>
<tr>
<td>Business Phone: </td>
<td><INPUT TYPE="text" NAME="name" SIZE="17">
</tr>
<tr>
<td>email: </td>
<td><INPUT TYPE="text" NAME="name" SIZE="17">
</tr>
<tr>
<td>Business URL: </td>
<td><INPUT TYPE="text" NAME="name" SIZE="17">
</tr>
<tr>
<td>Donation Amount: <?td>
<td><INPUT TYPE="text" NAME="name" SIZE="17">
</tr>
<tr>
<td>Package Sponsor: </td>
<td>
<input type="radio" name="sponsor" value="Bass Guitar" checked/>Bass Guitar
<input type="radio" name="sponsor" value="Fiddle" />Fiddle
<input type="radio" name="sponsor" value="Mandolin" />Mandolin
<input type="radio" name="sponsor" value="Donation" />Donation
</td>
</tr>
<tr>
<td>
<td>
</tr>
<tr>
<td colspan=2 align="center"><input type="submit" /></td>
</tr>
</table>
</form>
receive:
Error: Bad or Missing Recipient
There was no recipient or an invalid recipient specified in the data sent to FormMail. Please make sure you have filled in the recipient form field with an e-mail address that has been configured in @recipients or @allow_mail_to. More information on filling in recipient/allow_mail_to form fields and variables can be found in the README file.
--------------------------------------------------------------------------------
The recipient was: [ 292893 dougsapp@gmail.com name=recipient> ]
Last edited by dougsapp on Wed Mar 07, 2007 3:50 pm; edited 2 times in total |
|
Back to top |
|
|
john Site Admin
Joined: 16 Mar 2004 Posts: 3434
|
Posted: Wed Mar 07, 2007 3:07 pm Post subject: Re: Form Mail |
|
|
When you want to post to this forum and use the CODE tag, please also check the Disable HTML in this post box which will ensure that your code comes through properly. Can you please edit or repost your query, there is too much missing information on the original query...
Also it's very useful to include the actual URL where you can find this code so we can make sure that what you think is on the page is actually there... |
|
Back to top |
|
|
dougsapp
Joined: 07 Mar 2007 Posts: 5
|
Posted: Thu Mar 08, 2007 10:22 am Post subject: form mail |
|
|
Will not send.
http://bigdogvideoblog.blogharbor.com/blog/_WebPages/bbbb.html
<form method="post" action="http://tools.blogharbor.com/cgi-bin/FormMail.pl">
<input type="hidden" name="recipient" value="292893" />
<input type="hidden" name="subject" value="Feedback Form Example 3" />
<input type="hidden" name="required" value="Contact Name, Business Name,email,bussiness address,phone" />
<input type="hidden" name="return_link_url" value="http://www.blogharbor.com" />
<input type="hidden" name="return_link_title" value="Back to BlogHarbor Home Page" />
<input type="hidden" name="bgcolor" value="#ffffe7" />
<table border>
<tr>
<tr>
<td>Contact Name: </td>
<td><INPUT TYPE="text" NAME="name" SIZE="17">
</tr>
<tr>
<td>Business Name: </td>
<td><INPUT TYPE="text" NAME="name" SIZE="17">
</tr>
<tr>
<td>Business Phone: </td>
<td><INPUT TYPE="text" NAME="name" SIZE="17">
</tr>
<tr>
<td>email: </td>
<td><INPUT TYPE="text" NAME="name" SIZE="30">
</tr>
<tr>
<td>Business URL: </td>
<td><INPUT TYPE="text" NAME="name" SIZE="30">
</tr>
<tr>
<td>Donation Amount: <?td>
<td><INPUT TYPE="text" NAME="name" SIZE="30">
</tr>
<tr>
<td>Package Sponsor: </td>
<td>
<input type="radio" name="sponsor" value="Bass Guitar" checked/>Bass Guitar
<input type="radio" name="sponsor" value="Fiddle" />Fiddle
<input type="radio" name="sponsor" value="Mandolin" />Mandolin
<input type="radio" name="sponsor" value="Donation" />Donation
</td>
</tr>
<tr>
<td>
<td>
</tr>
<tr>
<td colspan=2 align="center"><input type="submit" /></td>
</tr>
</table>
</form> |
|
Back to top |
|
|
john Site Admin
Joined: 16 Mar 2004 Posts: 3434
|
Posted: Thu Mar 08, 2007 12:06 pm Post subject: Re: form mail |
|
|
As we explain in the How to Use FormMail to Send Yourself the Results of a Form Submission page which describes the usage of the form mail, you need to enter the Blog ID of your blog. You have this in your code:
Code: | <input type="hidden" name="recipient" value="292893" /> |
and the problem is that 292893 is not the Blog ID of your blog. Please login to the control panel and scroll to the bottom of the page, on the right side of the footer you should see your Blog ID listed. Use that number and your form should work as expected. |
|
Back to top |
|
|
dougsapp
Joined: 07 Mar 2007 Posts: 5
|
Posted: Thu Mar 08, 2007 12:22 pm Post subject: form Mail |
|
|
http://bigdogvideoblog.blogharbor.com/blog/_WebPages/bbbb.html
<form method="post" action="http://tools.blogharbor.com/cgi-bin/FormMail.pl">
<input type="hidden" name="recipient" value="280976" />
<input type="hidden" name="subject" value="Feedback Form Example 3" />
<input type="hidden" name="required" value="Contact Name, Business Name,email,bussiness address,phone" />
<input type="hidden" name="return_link_url" value="http://www.blogharbor.com" />
<input type="hidden" name="return_link_title" value="Back to BlogHarbor Home Page" />
<input type="hidden" name="bgcolor" value="#ffffe7" />
<table border>
<tr>
<tr>
<td>Contact Name: </td>
<td><INPUT TYPE="text" NAME="name" SIZE="17">
</tr>
<tr>
<td>Business Name: </td>
<td><INPUT TYPE="text" NAME="name" SIZE="17">
</tr>
<tr>
<td>Business Phone: </td>
<td><INPUT TYPE="text" NAME="name" SIZE="17">
</tr>
<tr>
<td>email: </td>
<td><INPUT TYPE="text" NAME="name" SIZE="30">
</tr>
<tr>
<td>Business URL: </td>
<td><INPUT TYPE="text" NAME="name" SIZE="30">
</tr>
<tr>
<td>Donation Amount: <?td>
<td><INPUT TYPE="text" NAME="name" SIZE="30">
</tr>
<tr>
<td>Package Sponsor: </td>
<td>
<input type="radio" name="sponsor" value="Bass Guitar" checked/>Bass Guitar
<input type="radio" name="sponsor" value="Fiddle" />Fiddle
<input type="radio" name="sponsor" value="Mandolin" />Mandolin
<input type="radio" name="sponsor" value="Donation" />Donation
</td>
</tr>
<tr>
<td>
<td>
</tr>
<tr>
<td colspan=2 align="center"><input type="submit" /></td>
</tr>
</table>
</form>
This is what I get.
The following fields were left blank in your submission form:
Contact Name
Business Name
email (must be a valid email address)
bussiness address
phone
These fields must be filled in before you can successfully submit the form.
Please use your back button to return to the form and try again. |
|
Back to top |
|
|
john Site Admin
Joined: 16 Mar 2004 Posts: 3434
|
Posted: Thu Mar 08, 2007 12:40 pm Post subject: Re: form Mail |
|
|
As we wrote to you when you sent us this question by email, please look at your custom INPUT fields... All of them are identical:
Code: | <INPUT TYPE="text" NAME="name" SIZE="17"> |
There's no way for the form to know which fields should be associated with which labels, i.e. is this the Contact Name or the Business Name? It's neither, it's just the name field.
Look at our example on the How to Use FormMail to Send Yourself the Results of a Form Submission page:
Code: | <form method="post" action="http://tools.blogharbor.com/cgi-bin/FormMail.pl">
<input type="hidden" name="recipient" value="1000" />
<input type="hidden" name="subject" value="Feedback Form Example 1" />
<input type="hidden" name="required" value="email,realname,feedback" />
Please enter your Email Address: <input type="text" name="email" /><br />
Please enter your Full Name: <input type="text" name="realname" /><br />
Please enter your Comments: <input type="text" name="feedback" /><br />
<input type="submit" value="Submit Form" />
</form> |
Notice how each of the fields has a different name? We have fields with the name of email, realname, and feedback. Please note that there are no spaces in the field names.
We also want to require that the user fill in each of those fields, so we made them all required, using this line:
Code: | <input type="hidden" name="required" value="email,realname,feedback" /> |
So you need to go back to your HTML code, and construct it as per our example making sure that each of your custom INPUT fields has a unique name (with no spaces), and that your "required" code contains the fields you want to be required, and that the names in the list of required fields exactly match the names as they were used in the input fields (i.e. don't use Business_Name in the required fields if your INPUT field is BusinessName). |
|
Back to top |
|
|
dougsapp
Joined: 07 Mar 2007 Posts: 5
|
|
Back to top |
|
|
john Site Admin
Joined: 16 Mar 2004 Posts: 3434
|
Posted: Thu Mar 08, 2007 5:51 pm Post subject: Re: Form Mail |
|
|
Glad to hear you got it working! It seems hard, but once you get the basic principles down you should be able to crank out forms quite easily. |
|
Back to top |
|
|
Search all BlogHarbor support resources.
|
View previous topic :: View next topic |
|