PHP noob, how to I display/run multiple varialbes in 1 line?
Posted: Thu Nov 13, 2008 8:47 pm
Hi all,
Need some help here just started dabbling in PHP. I have a contact form.html sending to a mailer.php (which sends a MIME html email)
Now I have (which I presume stores my form data into variables starting with $
$name_field = $_POST['name'];
$email_field = $_POST['email'];
$phone_field = $_POST['phone'];
$message = $_POST['message'];
My problem is that I would now like to display the values of these variables using PHP, but I am really struggling how to work it out! Do i use print, $_POST?. I see \r means line return if someone could show me how to write this out would be much apprecaited.
I'm trying to get something like this:
Name: (displays my $name_field variable)
Email: (displays my $email_field variable)
Phone: (displays my $phone_field variable)
Message: (displays my $message variable)
Need some help here just started dabbling in PHP. I have a contact form.html sending to a mailer.php (which sends a MIME html email)
Now I have (which I presume stores my form data into variables starting with $
$name_field = $_POST['name'];
$email_field = $_POST['email'];
$phone_field = $_POST['phone'];
$message = $_POST['message'];
My problem is that I would now like to display the values of these variables using PHP, but I am really struggling how to work it out! Do i use print, $_POST?. I see \r means line return if someone could show me how to write this out would be much apprecaited.
I'm trying to get something like this:
Name: (displays my $name_field variable)
Email: (displays my $email_field variable)
Phone: (displays my $phone_field variable)
Message: (displays my $message variable)