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

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.