Jump to content

cima_82

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

cima_82's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Does the way you access values sent through a web form using POST vary from PHP version? i had something like this: <form method = "POST" action = " "> String Input: <input type = "text" name = "t1"> <input type= "submit" value= "ok"> </form> <?php echo "Inupt string: ".$_POST['t1']; ?> nothing got printed to the browser. tried this: <?php echo "Inupt string: ".$_POST[t1]; ?> and it printed the text i entered in the text box. why?? im working on a ubuntu server with PHP5.2.1. i usually accessed the values in the post var using $_POST['varname']. any ideas as to what happened and why?
×
×
  • 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.