two questions post variables and GD lib.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sublevel4
Forum Commoner
Posts: 33
Joined: Wed May 29, 2002 2:14 pm
Contact:

two questions post variables and GD lib.

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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
Post Reply