PDA

View Full Version : Could you someones test my form on the Contact Us Page



cmwatts67
05-23-2006, 08:00 AM
My website is http://www.softwareeditorial.com/contact us.html
I would appreciate if someone could test this, one thing I have noticed is that no one seems to have their emails go to a googlemail account, this is where I want mine to go

navaldesign
05-23-2006, 08:23 AM
Seems to work ok, though the Thankyou page is not what i would do.
A good habbit is to have your links with underscores - no blank spaces. I had to correct your link.
And yes, after a change in the smtp autentication software, which was performed sometime ago, you can have the mail sent to your Google email address

cmwatts67
05-23-2006, 08:29 AM
thank you naval design

this is what appeared in googlemail

Values submitted from web site form:
Message : Just testing your form
email_address : ????@navaldesign.it
subject : Testing
name : Navaldesign
Submit : Submit



is that usual for it to be like this ?

how could I make the message after clicking the button more appealing ?

navaldesign
05-23-2006, 08:31 AM
You may also want to change your 404 error page. Your "Click here to continue" link leads to www.vodahost.com (http://www.vodahost.com) and NOT to your homepage as it should (or the last page they had visited on your site)

cmwatts67
05-23-2006, 08:35 AM
I have not seen a click here to continue link !

or a 404 error page where is this then, all i see is when I click the submit button is a message in which there are no links

navaldesign
05-23-2006, 08:39 AM
You need to change the script a little. Go in : http://netisopen.com/computer/TF001/T001.html

You can also find a tutorial and example on adding field validation in your script in http://netisopen.com/computer/TF005/T005.html

navaldesign
05-23-2006, 08:42 AM
I have not seen a click here to continue link !

or a 404 error page where is this then, all i see is when I click the submit button is a message in which there are no links

What i meant is the 404 Page not found error page that comes up when a visitor clicks on a non exixting link on your site. F.e., click on http://www.softwareeditorial.com/1234.html This will take you to your error page. This page can be customised to take back to your homepage. Click on this : http://www.navaldesign.info/dfsbb to see my error page.

cmwatts67
05-23-2006, 08:50 AM
this is my form html I am a bit lossed with regard to what you are recommending this is the html of my form


<FORM name="Contact Us" method="POST" action="contact us.php" enctype="multipart/form-data">
<DIV style="position:absolute;left:15px;top:40px;width:150px;h eight:18px;z-index:10" align="left">
<FONT style="FONT-SIZE:11pt" color="#00005E" face="Arial"><B>Name</B></FONT>
</DIV>
<DIV style="position:absolute;left:15px;top:100px;width:150px; height:18px;z-index:11" align="left">
<FONT style="FONT-SIZE:11pt" color="#00005E" face="Arial"><B>Email Address</B></FONT>
</DIV>
<TEXTAREA name="Message" style="position:absolute;left:184px;top:261px;width:367px ;height:272px;z-index:12" rows=19 cols=43>Type Your Message Here</TEXTAREA>
<INPUT type="text" style="position:absolute;left:182px;top:97px;width:368px; z-index:13" size="46" name="email address" value="">
<INPUT type="text" style="position:absolute;left:182px;top:156px;width:368px ;z-index:14" size="46" name="subject" value="">
<INPUT type="text" style="position:absolute;left:181px;top:39px;width:368px; z-index:15" size="46" name="name" value="">
<DIV style="position:absolute;left:15px;top:156px;width:150px; height:18px;z-index:16" align="left">
<FONT style="FONT-SIZE:11pt" color="#00005E" face="Arial"><B>Subject</B></FONT>
</DIV>
<INPUT type="submit" name="Submit" value="Submit" style="position:absolute;left:182px;top:558px;z-index:17">
<INPUT type="reset" name="Reset" value="Reset" style="position:absolute;left:254px;top:558px;z-index:18">
<DIV style="position:absolute;left:485px;top:230px;width:65px; height:36px;z-index:19" align="left">
<FONT style="FONT-SIZE:11pt" color="#00005E" face="Arial"><B>Message</B></FONT>
</DIV>

</FORM>

If you could highlight what I need to change this would be simpler for me and would be appreciated

navaldesign
05-23-2006, 09:53 AM
This is the form page code. You don't have to do anything here, except maybe changing the action: "contact us.php" in "contact_us.php" (with underscore). Then copy the following code:

<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = youremail@yourdomain.com;
$mailsubj = "Put your subject here";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form: or whatever else you want \n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
$mailbody .= "$key : $val\n";
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
header("Location:thankyoupage.html");


?>

Paste the code in notepad. Change the lines in blue, to be your own details. Go to "SAve As", choose File Type: All files, and save it as "contact_us.php" on your computer. Upload it on your site, using BlueFTP. Now go in your form page, change the action in "contact_us.php", save it and re-publish it.

Create your "thankyoupage" in BV, as you want it to be. Make sure to insert also your menubar, so the visitor can go on surfing your site. Publish it normally. You are done!

cmwatts67
05-23-2006, 09:59 AM
Thank you for your help,

I will have to try this later as I have to go on a construction site now


once again thank you for your patience and cooperation.

Could you also give me clear instructions on that error page we discussed out of this forum

navaldesign
05-23-2006, 10:01 AM
If you want a personalized " 404 Page not found" Error Page, create the page in BV excactly as you like it. Save it. Right click anywhere on the page, and Go to Page HTML. Copy the code of the page. Now go in your VodaHost CP, click on Error Pages. Choose the 404 Wrong Page. In the window that opens, delete everything, and paste the code that you have copied from the BV page. Save the page and you are done.

cmwatts67
05-23-2006, 10:31 AM
thats great that sounds easy enough I shall do this later

cmwatts67
05-23-2006, 05:58 PM
To Naval design i am getting the page for email confirmation acceptable but i canoot get the message to my email address, which is softwareeditorial@googlemail.com.

could you tell me what is wrong

navaldesign
05-23-2006, 06:06 PM
Did you put your email address in the script ?

cmwatts67
05-23-2006, 06:08 PM
I think I have cracked it, could you test it for me one more time I think its done please would you let me know ?


Much Appreciated !

navaldesign
05-23-2006, 06:13 PM
Seems to work, though i don't know if the email is sent or not. Also, take off your thankyou page the piece of code you have put in there and gives you that big black letter message.

cmwatts67
05-23-2006, 06:17 PM
I got it it works , ok and I will do the other

Thank you

cmwatts67
05-23-2006, 06:23 PM
What about in my email it says UNKNOWN SENDER why will it not identify the person sending the email, it does in the form.

(unknown sender) to me

Values submitted from web site form:

Message : Type Your Message Herexxxxxaaaaaaaaaaaaaaswwwwwwwwwwwwwwwwwwwwwddddd dd
email_address : testing cmw
subject : message test
name : chris watts
Submit : Submit

navaldesign
05-23-2006, 06:33 PM
This is a simple script that you have used. At most, it can have in the "From" field, the email address tht's been typed in the form. No more than that.

navaldesign
05-23-2006, 06:35 PM
And you still have some piece of code in your page, as well as some white text in the lower part of the thankyoupage.

cmwatts67
05-23-2006, 06:43 PM
sorry I don't not see what you sein my tests could you show me what you mean ?

navaldesign
05-23-2006, 07:16 PM
In the tahnkyou page there is a >HTML and a ! under the right bottom pc

cmwatts67
05-23-2006, 07:26 PM
I have seen how to get rid of the !

but i am lost as to the html i can not work out which bit to delete out of the coding

navaldesign
05-23-2006, 07:32 PM
Open the thankyou page in BV, view the html. and you will see it because it is in Blue Colour. You have probably forgotten it there when you copy / pasted to create the thankyou page. My guess is that it is in the Inside Body tag of your page