Variables: What's the difference between


i reviewing , thinking how have made web application created more efficient in future. contemplating use of variables there not have many different results pages , queries. different between following variable types , perhaps simple example of each if has one:
1. url variable
2. cookie variable
3. session variable
4. environmental variable
5. form variable
6. server variable

thanks.

fifthavenuegirl wrote:
> different between following variable types , perhaps simple
> example of each if has one:
> 1. url variable
> 2. cookie variable
> 3. session variable
> 4. environmental variable
> 5. form variable
> 6. server variable

it if server model you're using, in
simple terms, each describe variable comes from.

1. url variable passed page through query string @ end
of url:

http://www.example.com/somepage.php?name=david

you access in php $_get['name']

2. cookie variable comes stored cookie: $_cookie['name']

3. session variable 1 available in pages
part of session: $_session['name']

4. environmental variables tell information server
site running on: $_env['variablename'] (not used often)

5. form variable contains contents of form element submitted
using post method: $_post['name']

6. server variable gathers information script or server
that script running on: $_server['script_name'] contains
current script's path

--
david powers, adobe community expert
author, "foundation php dreamweaver 8" (friends of ed)
author, "php solutions" (friends of ed)
http://foundationphp.com/


More discussions in Develop server-side applications in Dreamweaver


adobe

Comments

Popular posts from this blog

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

Crossfader Arduino Tutorial