Jump to content

Help please - what is &777&


mynameis

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.