PDA

View Full Version : Form Problems



Jeremy
06-19-2006, 04:24 AM
Hey!

For some reason I havn't been able to get my forms to send to my inbox at (support@bwservices.ca (support@bwservices.ca)) ... I have tried since May to get my forms to redirect to (http://www.bwservices.ca/Thank (http://www.bwservices.ca/Thank) you.html) aswell and that hasnt worked either.

Here is the html code pasted below. If anyone can help me out that would be great!

<style>
body,td,legend {
color: black;
font-family: Century Gothic;
font-size: 14px;
}
span.required{
font-size: 13px;
color: red;
}
</style>
<script language="php">
$email = $HTTP_POST_VARS[email];
$mailto = "jeremy_bellefeuille********.com (jeremy_bellefeuille********.com)";
$mailsubj = "BW SERVICES - CONTACT FORM";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS)) { $mailbody .= "$key : $val\n"; }
if (!eregi("\n",$HTTP_POST_VARS[email])) { mail($mailto, $mailsubj, $mailbody, $mailhead); }
?>
<table width="520" cellpadding="5" cellspacing="0">
<tr valign="bottom">
<td width="150" valign="bottom" >
<label for="q0">Company</label>
</td>
<td valign="bottom">
<input type="text" size="20" name="q0_Company" id="q0">
</td>
</tr>
</table>
<table width="520" cellpadding="5" cellspacing="0">
<tr valign="bottom">
<td width="150" valign="bottom" >
<label for="q2">Title</label>
</td>
<td valign="bottom">
<input type="text" size="20" name="q2_Title" id="q2">
</td>
</tr>
</table>
<table width="520" cellpadding="5" cellspacing="0">
<tr valign="bottom">
<td width="150" valign="bottom" >
<label for="q3">Name <span class="required">*</span></label>
</td>
<td valign="bottom">
<input type="text" size="20" name="q3_Name" id="q3">
</td>
</tr>
</table>
<table width="520" cellpadding="5" cellspacing="0">
<tr valign="bottom">
<td width="150" valign="bottom" >
<label for="q4">Last Name <span class="required">*</span></label>
</td>
<td valign="bottom">
<input type="text" size="20" name="q4_LastName" id="q4">
</td>
</tr>
</table>
<table width="520" cellpadding="5" cellspacing="0">
<tr valign="bottom">
<td width="150" valign="bottom" >
<label for="q5">E-mail <span class="required">*</span></label>
</td>
<td valign="bottom">
<input type="text" size="20" name="q5_E-mail" id="q5">
</td>
</tr>
</table>
<table width="520" cellpadding="5" cellspacing="0">
<tr valign="bottom">
<td width="150" valign="bottom" >
<label for="q6">Phone Number <span class="required">*</span></label>
</td>
<td valign="bottom">
<input type="text" size="20" name="q6_PhoneNumber" id="q6">
</td>
</tr>
</table>
<table width="520" cellpadding="5" cellspacing="0">
<tr valign="bottom">
<td width="150" valign="top" >
<label for="q7">Message <span class="required">*</span></label>
</td>
<td valign="bottom">
<textarea wrap="soft" cols="30" rows="3" name="q7_Message" id="q7"></textarea>
</td>
</tr>
</table>
<table width="520" cellpadding="5" cellspacing="0">
<tr valign="bottom">
<td width="150" valign="bottom" >
<label for="q8">How did you hear about us?</label>
</td>
<td valign="bottom">
<input type="text" size="20" name="q8_Howdidyouhearaboutus" id="q8">
</td>
</tr>
</table>
<table width="520" cellpadding="5" cellspacing="0">
<tr valign="bottom">
<td width="150" valign="bottom" >

</td>
<td valign="bottom">
<input TYPE="submit" VALUE="Submit"><input TYPE="reset">
</td>
</tr>
</table>
</form>

___________

Thank you.
Jeremy.

www.bwservices.ca/ (http://www.bwservices.ca/)
Black & White Designs

Andy128
06-19-2006, 05:40 AM
I do not see your form in what you have posted. But- check out the link below on how to set up a php mailto form.

http://netisopen.com/computer/TF001/T001.html

Andy

beegud2
06-19-2006, 05:47 AM
Hi Jeremy,

I looked on what I had and compared to yours and you seem to be missing this header("Location: confirmationpage.html"); in the last part of your code which reads
</style>
<script language="php">
$email = $HTTP_POST_VARS[email];
$mailto = "jeremy_bellefeuille********.com";
$mailsubj = "BW SERVICES - CONTACT FORM";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS)) { $mailbody .= "$key : $val\n"; }
if (!eregi("\n",$HTTP_POST_VARS[email])) { mail($mailto, $mailsubj, $mailbody, $mailhead); }
?> I think you need to fill in here...try it out and see what happens.

Just a stupid question but do you have a confirmation page php....you might be calling it something else. Andy has a tutorial on it....but I here the new form maker pro does it quite nicely..if you want to do over.

bzzz

Sorry no help on the e-mail part of it.

VodaHost
06-19-2006, 07:41 AM
moving to form section.

davidundalicia
06-19-2006, 10:54 AM
Contact Us
to our offical Canadian technical support team.

The above is the heading on your Contact page.

I strongly suggest that you read and digest andy&#180;s tutorial and then pass on the info to your technical support team.

You might also want to view the various threads on Page sizes as yours seem to stretch to far to the right resulting in the user having to scroll.

I mention these points because design is not just about putting pages up on the web......

Good Luck.

navaldesign
06-19-2006, 12:03 PM
You have various issues here.
1. You are missing the <form> opening tag
2. You have the processing script in your form page. It must be in your thankyou or confirmation page.
3. You have created the form with some other program? not BV?
4. As it is created, it looks like this other program passes your email address to the script(cgiemail) by means of a hidden field. It also passes through a number of other parameters, so my guess is that this form requires cgiemail to worl properly.


I suggest that you re-do it, following Andy's instructions.

navaldesign
06-19-2006, 03:49 PM
Hi, click here to see your form functioning: http://www.navaldesign.info/Tips/bw/contact_us.html . if you submit, you will also receivr the email. Then, if you like, i'll send you the .bvp pages, so you will only have to publish them.

Jeremy
06-19-2006, 09:42 PM
Hi, click here to see your form functioning: http://www.navaldesign.info/Tips/bw/contact_us.html . if you submit, you will also receivr the email. Then, if you like, i'll send you the .bvp pages, so you will only have to publish them.
Hey navaldesign!

I see what you have done with the form and I really like it, and I appreciate you taking the time for this and all other people. If you can please send me the .bvp page that would be wonderful!!

Thanks.

Jeremy
06-19-2006, 09:52 PM
Hey!

Thanks for all your help, and I do appreciate you guys criticizing my website ... someone also mentioned that you have to scroll left and right on my website. The reason for that is that I am building my website with a very large screen there for people who have small screens have to scroll.

... thank you for letting me know, I will be working on that shortly.

Thanks.

Jeremy
06-19-2006, 09:53 PM
Hey!

I would also like to know if Form Maker Pro 4 is free for all VodaHost customers. Because I have followed instructions on installing the program but can not figure out how.

Thanks.

navaldesign
06-19-2006, 10:41 PM
Hey navaldesign!

I see what you have done with the form and I really like it, and I appreciate you taking the time for this and all other people. If you can please send me the .bvp page that would be wonderful!!

Thanks.

I will, tomorrow morning, from Office, where i have the files i made for you.. It's midnight here and time for bed.