BlogHarbor Home Page
FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  UsergroupsRSS   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Form Mail
 
Post new topic   Reply to topic    BlogHarbor Community Forum Index -> Beginner's Lounge
View previous topic :: View next topic  
Author Message
dougsapp



Joined: 07 Mar 2007
Posts: 5

PostPosted: Wed Mar 07, 2007 1:57 pm    Post subject: Form Mail Reply with quote

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>" /> &nbsp;
<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
View user's profile Send private message Send e-mail
john
Site Admin


Joined: 16 Mar 2004
Posts: 3434

PostPosted: Wed Mar 07, 2007 3:07 pm    Post subject: Re: Form Mail Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
dougsapp



Joined: 07 Mar 2007
Posts: 5

PostPosted: Thu Mar 08, 2007 10:22 am    Post subject: form mail Reply with quote

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
View user's profile Send private message Send e-mail
john
Site Admin


Joined: 16 Mar 2004
Posts: 3434

PostPosted: Thu Mar 08, 2007 12:06 pm    Post subject: Re: form mail Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
dougsapp



Joined: 07 Mar 2007
Posts: 5

PostPosted: Thu Mar 08, 2007 12:22 pm    Post subject: form Mail Reply with quote

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
View user's profile Send private message Send e-mail
john
Site Admin


Joined: 16 Mar 2004
Posts: 3434

PostPosted: Thu Mar 08, 2007 12:40 pm    Post subject: Re: form Mail Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
dougsapp



Joined: 07 Mar 2007
Posts: 5

PostPosted: Thu Mar 08, 2007 3:46 pm    Post subject: Form Mail Reply with quote

It Works http://bigdogvideoblog.blogharbor.com/blog/_WebPages/SponsorshipForm.html

Thank You
John
Back to top
View user's profile Send private message Send e-mail
john
Site Admin


Joined: 16 Mar 2004
Posts: 3434

PostPosted: Thu Mar 08, 2007 5:51 pm    Post subject: Re: Form Mail Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Search all BlogHarbor support resources.
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    BlogHarbor Community Forum Index -> Beginner's Lounge All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum