Jump to content

sirish

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

sirish's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Yes you can. $_SESSION, $_GET, $_POST, $_COOKIES are global variables and are used to preserve the state of a variable. You can easily access it in different urls
  2. Once you clicked submit button the values entered in the form is stored in $_POST or $_GET as per your method of the form. So in order to retreive the previously entered value, try the following Suppose the name of your textfield is "username" For method=POST <input name="username" type="text" id="name" value="<?=$_POST['name']?>" /> For method=GET <input name="username" type="text" id="name" value="<?=$_GET['name']?>" /> :)
×
×
  • 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.