Jump to content

sstangle73

Members
  • Posts

    288
  • Joined

  • Last visited

Everything posted by sstangle73

  1. lets see your code its probally a browser preference more then a code you could alwasys use target=_self
  2. this wont solve the problem but you are supposed to use %20 to repersent a space in links!
  3. The font element was deprecated in HTML 4.01. but yah more code would help
  4. there is no <font color> tag its <style font-color:"";>i belive is the problem im not positive
  5. bumpercars
  6. allright thanks but the cookie still isnt setting
  7. To get the data <? if (isset($_COOKIE['UserName'])) { echo ?> <form action="mail.php" method="post"> Your Name: <input type="text" name="name"><br> E-mail: <input type="text" name = "email"><br><br> Comments<br> <textarea name="comments"></textarea><br><br> <input type="submit" value="Submit"> </form> <? } else { echo ?> <form action="name.php" method="post"> Your Name: <input type="text" name="UserName"><br> <input type="submit" value="Remember My Name!"> </form> <? } ?> on name.php: <?php setcookie("UserName", $_POST['UserName'], time()+604800); ?> <html>...</head>... <?php $UserName=$_POST['UserName']; php?> <?php echo "Thanks $UserName"; php?> <br> <?php if (isset($_COOKIE["user"])) { echo "Your name will be remembered for one week or untill your cookies are cleared!"; } else { echo "Error Cookie not set Please try again. Check to make sure you browser allows cookies!"; } php?> here is retriveing the cookie back on the index.php: <?php if (isset($_COOKIE['UserName'])) { echo "Hello, ".$_COOKIE['UserName']."! Welcome back!"; } else { echo "Please provide your name below!"; } php?>
  8. Hey guys i have this site i do for my sisters soccer club and wanted to know what u guys thought [pretty basic] http://shenentahasoccer.org
  9. the fact that nothing changes on my site saying that cookie wasnt written http://stangle.info try it mabie im just way too tired lol
  10. the cookie isnt writeing my site is stangle.info and its the remember my name thing right on the home page i cant figure it out
  11. <?php setcookie("UserName", $_POST['UserName'], time()+604800); ?> What am i doing wrong? Thanks!
×
×
  • 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.