tags:

views:

21

answers:

2

I have two pages like reg.php and profile.php. in reg.php have a field gender want to show on profile.php. i get gender field from reg.php on profile.php.

A: 

Use one of the following:

  • Use a hidden form field and submit the form to profile.php.
  • Append the field to the URL like this: profile.php?gender=male.
  • Put the field in the user's session.
  • Put the field in a database, and retrieve it from the database in profile.php.
Sjoerd
Can u plz send me test file of php?
A: 

A litle Sample to use a HTML Form for subimting data ....

reg.php

<form action="profile.php" method="post">
<input type="text" name="test" value="Test" />
<input type="submit" value="test" />
</form>

profile.php

<?php
echo $_POST["test"];
?>
Kubain