PDA

View Full Version : Trouble Posting Form Data on new page



kdubbie
03 Oct 2010, 03:21 PM
Hi, I have a form on my website that once submitted, I want the data to be posted on the page it redirects to.

Here is what I am doing (with just one of the form fields)

Form
<input type="text" name="fname" id="fname" size="30" />

PHP code on next page

<?php

$fname = $_POST ['fname'];

echo "<p>The following information has been submitted:</p>";
echo "<p>First Name: " . $fname . "</p>";


?>

The crazy thing is this...It was working at one point, the data from the form was being posted with the above code...but now I have no idea what happened, it just all of a sudden stopped working.

Any help would be great!!!

Mordax
03 Oct 2010, 05:19 PM
All of the code that you have posted there is fine, so look elsewhere for the problem

Is there more code you can show us?

When you say "stopped working" what exactly is still happening if anything?

Are there any error messages of any type?