Page 1 of 1

two questions post variables and GD lib.

Posted: Fri Nov 08, 2002 8:26 am
by sublevel4
i am trying to understand some things a little better. if you have register_globals off and you are using a form(page1) that posts data to a page(page2) that process that what happens if there are two users in this process at the same time. Are the $_POST variables confined to each instence of the browser?


The second questions is where can i learn how to use the GD library? are the image functions all i need to be come familar with?

Thanks for your help

Posted: Fri Nov 08, 2002 9:15 am
by volka
a http-request is devided into two parts

request-header
<empty line>
request-body

a form like

Code: Select all

<form method="POST" action="/virtual/path/to/a/script.php">
   <input type="hidden" name="stardate" value="79853.89" />
   <select name="page">
      <option value="1">1</option>
      <option value="2">1</option>
      <option value="3">1</option>
   </select>
</form>
may createa request like

POST /virtual/path/to/a/script.php HTTP/1.0
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2b) Gecko/20021029 Phoenix/0.4
Accept: */*
...maybe some other things....
Content-length: 24

stardate=79853.89&page=2


and php will extract this info for each request on its own; for each request a new set of _GET,_POST,_SESSION,.... variables