nikky_hack Posted August 25, 2008 Share Posted August 25, 2008 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 Quote Link to comment Share on other sites More sharing options...
joquius Posted August 25, 2008 Share Posted August 25, 2008 You need to store the data in a database such as MySQL. Try reading some tutorials on MySQL usage with PHP. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.