Problem is solved.
Hello! 🙂
Before I had the data in a querustring and it worked fine, and the mail I recieved did look fine, but I came to the conclusion that if uncommon chars is entered(or chars liks +), it is better to use "hidden " in the form to transfer the data, and skip the querysring.
My problem is...with name and phone(that is entered at page 1, all data after the first spacebar is taken away and is not in the mail.
Example
Name: John L Doe -> John
Phone: +44 12345 -> +44
Anyone has any idea to this strange problem please ?
I do have theese three pages:
Here is part of the pages
Page1:
<INPUT TYPE="text" NAME="nam" size="40" value="<?echo $nam?>
<INPUT TYPE="text" size="40" NAME="phone" value="<?echo $phone?>">
And the data flies into....
Page2:
Here I put this inside a Form at page2:
<?
$phone=$_POST["phone"];
?>
<INPUT TYPE="hidden" NAME="nam" value=<?echo $_POST["nam"];?>>
<INPUT TYPE="hidden" NAME="phone" value=<?echo $phone;?>>
And the values flies to...yes, you guessed it right, page 3.
Page 3:
Here the values is put int variables:
$nam = $POST["nam"];
$phone = $POST["phone"];
And later on sent in a mail:
//Here a mail is sent
$address = "nospam
$subject = "INET $sub";
$message = "Modell: $model\n";
$message .= "Name: $nam\n";
$message .= "Phone: $phone\n";
$headers = "From: the webpage <>\r\n";
mail($address, $subject, $message, $headers);
Found the error now just before I hit submit....
<INPUT TYPE="hidden" NAME="nam" value=<?echo $_POST["nam"];?>>
Should have value =" bla bla bla "
Posting it anyway, somebody might learn something from this...