Jump to content

PHP sticky forms - across multiple web pages


nikky_hack

Recommended Posts

Hi,

want to include a sticky form in my vertical menu on left.  I want users to be able to write notes there and when they navigate through pages on my site, the info they type there is remembered.

 

On every page I am including the vertical menu

 

<?php include("verticalmenuleft.php");?>

 

in the vertical menu I have a <div> that has the following

 

<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">

<input type="text" name="rememberme" maxlength="20" size="20"

      value="<?php if(isset($_POST['rememberme'])) echo $_POST['rememberme']; ?>" />

<input type="submit"  value="click to remember this" />

</form>

 

when you submit whatever you have typed, the form remembers, but when you navigate to another page on the site, the field is blanked.  How do I keep this info across all my pages???

 

any thoughts (FYI I am a n000b to PHP)

thanks,

stephen

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.