mynameis Posted April 12, 2008 Share Posted April 12, 2008 hi, i have my php form which is now emailing me the results from my web form.... however i get: &777& added to the end of each value for some reason? ...which just makes the results that little bit harder to read. Just wondering if anyone has experienced this and know what causes it? thanks Link to comment https://forums.phpfreaks.com/topic/100786-help-please-what-is-777/ Share on other sites More sharing options...
AndyB Posted April 12, 2008 Share Posted April 12, 2008 'for some reason' is probably related to your form handler/email script. Can't help with code we can't see. Post the relevant parts of your code, not honking great globs of html please. Link to comment https://forums.phpfreaks.com/topic/100786-help-please-what-is-777/#findComment-515510 Share on other sites More sharing options...
mynameis Posted April 12, 2008 Author Share Posted April 12, 2008 hi, my email script is a file named contact.php and below is the script: <?php // only needs to be set on windows ini_set("sendmail_from", "[email protected]"); $destination="[email protected]"; $your_name=$_POST['your_name']; $telephone=$_POST['telephone']; $your_email=$_POST['your_email']; $from = $_POST['your_email']; $mes=$_POST['message']; $header="From: $from\n"; $mes="Name: $your_name\n Address: $telephone\n Email: $your_email\n Comments: $mes\n"; $res = mail("[email protected]", "Website Enquiry", $mes, "From: [email protected]", "[email protected]"); if($res == 1){echo "Email sent successfully. Thanks, we will contact you soon."; } ?> ---------------- I hope thats not too long a script to be uploading to these forums The actual form only has 4 fields though, 'your_name','telephone','your_email','message' And currently the email i recieve from the forms results is showing 3 of the 4 fields, it shows my the title 'address' but shows no value, which should be a phone number value entered into the 'telephone' field and the 3 form results it does send all have the &777& following them, here is an example of what the email i recieve looks like: (the value i entered into each of the 4 fields in this example is 'test') ------ Name: test&777&Your Name: Address: Email: [email protected]&777&Your Email: Comments: test msg from form&777&Message: ------ Thanks for looking at this, and if you can see where ive gone wrong on missing the 'telephone' field value youd be doing me a big favour explaining as i have tried to sort it but am now stuck. But the &777& showing up has got me baffled as to where it is coming from?? cheers Link to comment https://forums.phpfreaks.com/topic/100786-help-please-what-is-777/#findComment-515526 Share on other sites More sharing options...
AndyB Posted April 12, 2008 Share Posted April 12, 2008 http://codingforums.com/archive/index.php?t-130783.html is that relevant? Link to comment https://forums.phpfreaks.com/topic/100786-help-please-what-is-777/#findComment-515531 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.