Do I need a database to see my php emails?

  • Thread starter Thread starter Carl H
  • Start date Start date
C

Carl H

Guest
I have a (signup)form on a html site and Im using php to send/see the form. The content is missing in my emails when I retrieve the emails. I don't see the questions or answers in my email. Whats wrong? Do I need a database? Just a blank page.
the question are on the html web page. I have to put that same questions on the php page too that's in the server? As far as the questions, I need a little more info.
this is my php page on the server:

<FORM METHOD=post ACTION="/cgi-bin/mail.php">
Your Email: <input name="[email protected],[email protected]" type="text" />

Feedback/Comments:

<textarea name="message" rows="15" cols="40">
</textarea>

<input type="submit" VALUE="Form"/>
</form>




and have a php file that contains this:

<?php
$email = $_REQUEST['[email protected]'] ;
$message = $_REQUEST['message'] ;

mail( "[email protected]", " SignUp",
$message, "From: [email protected]" );
header( "Location: thanks.html" );
?>
should I put something in the ['message']?
 
You may not be pulling the data from the field names. See this example

$msg = "This is the first line of the e-mail, like the name";
$msg .= $_GET['thenameofthefirstfielf'];
$msg .= "/n etc";
And a database is not needed
 
Back
Top