Free Web Hosting Forum
(#11 (permalink))
Old
d3iti's Avatar
Super Moderator
d3iti is on a distinguished road
 
Posts: 4,606
Join Date: Jul 2009
Location: Spain
Default 08-02-2010, 12:28 PM

I think the problem is not reached by the contents of the variables to the php file.
Can you try the following to see if it the content of the variables you're passing by POST?
Modifies the content of the file so that it is the following code:
PHP Code:
<?php
print_r
($_POST);    // print post variables
$subject ="Advertise from your site";
$message="$webaddress""$image""$adforus""$aboutusersite";
$mail_from="$email";
$header="from: $name <$mail_from>";
$to ='myemail@hotmail.co.uk';
$send_contact=mail($to,$subject,$message,$header);
if(
$send_contact){
echo 
"Thank you for submiting your request.";
}
else {
echo 
"Unfortunately an error occurred while trying to send this message. Please 

try again later"
;
}
?>
I added the line # 2 next text:
print_r ($ _POST);
I also have changed the comma "," by dot "."
Write a post on results you get when you run the modified script.


Si este mensaje te ha servido de ayuda no dudes en pulsar sobre el botón karma
Reply With Quote
Sponsored Links
(#12 (permalink))
Old
Senior Member
littleoly is on a distinguished road
 
Posts: 106
Join Date: Oct 2009
Location: England, UK but want to move to America
Default 08-08-2010, 06:49 AM

d3iti i have done what you said and now once i click send this message appears,(i have typed trial into all of the fields),
'Array ( [email] => trial [webaddress] => trial [image] => trial [adforus] => on [aboutusersite] => trial ) Thank you for submiting your request.'

But i still don't get an e-mail,

Thanks for all your help so far.
Reply With Quote
(#13 (permalink))
Old
d3iti's Avatar
Super Moderator
d3iti is on a distinguished road
 
Posts: 4,606
Join Date: Jul 2009
Location: Spain
Default 08-08-2010, 10:06 AM

Hi littleoly,

In the previous PHP code, which puts $ to = 'myemail@hotmail.co.uk', you must change myemail@hotmail.co.uk for your email address.

You should also check your e-mail account within hotmail.co.uk your spam folder (spam) if the message gets to this folder.


Si este mensaje te ha servido de ayuda no dudes en pulsar sobre el botón karma
Reply With Quote
(#14 (permalink))
Old
Senior Member
littleoly is on a distinguished road
 
Posts: 106
Join Date: Oct 2009
Location: England, UK but want to move to America
Default 08-13-2010, 01:07 PM

Quote:
Hi littleoly,

In the previous PHP code, which puts $ to = 'myemail@hotmail.co.uk', you must change myemail@hotmail.co.uk for your email address.

You should also check your e-mail account within hotmail.co.uk your spam folder (spam) if the message gets to this folder
I have changed the email and its not in my 'Spam' Folder
Reply With Quote
(#15 (permalink))
Old
Junior Member
Nvrnight is on a distinguished road
 
Posts: 16
Join Date: Aug 2010
Default 09-01-2010, 05:45 PM

http://www.html-form-guide.com/php-f...alidation.html

This class makes form validation rather painless.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com