•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 374,019 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,718 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 2379 | Replies: 4
![]() |
•
•
Join Date: Jan 2005
Posts: 13
Reputation:
Rep Power: 4
Solved Threads: 0
Hi guys,
I have been looking at various form processing scripts, bascially to gain some understanding of how they work.
I have managed to work through one section apart from one bit. I keep seeing the following:
I was just wondering what this was. I am using Dreamweaver MX and it changes the colour of every $_POST. So it doesnt look like a variable.
Can someone explain what it is and what it does - or is it just a variable for something?
Thanks,
JameZ
I have been looking at various form processing scripts, bascially to gain some understanding of how they work.
I have managed to work through one section apart from one bit. I keep seeing the following:
$_POST
I was just wondering what this was. I am using Dreamweaver MX and it changes the colour of every $_POST. So it doesnt look like a variable.
Can someone explain what it is and what it does - or is it just a variable for something?
Thanks,
JameZ
•
•
Join Date: Sep 2004
Location: in the j00-kay
Posts: 114
Reputation:
Rep Power: 4
Solved Threads: 5
Yup. its a way to pass data from one page to another. you could call it a variable but as you say its moved around by HTTP rather than php scripts temselves.
and yes it is a replacement for HTTP_POST_VARS .. somewhat shorter and easier to remember dont you think
and yes it is a replacement for HTTP_POST_VARS .. somewhat shorter and easier to remember dont you think
I'm pink, therefore, im spam.
http://www.vivaci.net - Quality Webhosting
http://gaming.vivaci.net - FAST UK Gaming servers
http://www.getsigned.org - Free Image Uploads
http://www.vivaci.net - Quality Webhosting
http://gaming.vivaci.net - FAST UK Gaming servers
http://www.getsigned.org - Free Image Uploads
•
•
Join Date: Jan 2005
Posts: 13
Reputation:
Rep Power: 4
Solved Threads: 0
hehehe....yeah a lot easier to remember. Its just i have 2 EXCELLENT books that i have learnt PHP from but neither of them mention $_POST....when i found out that it was a replacement for HTTP... i found it in one of them immediately!
You said its a way to pass data from one page to another....how exactly? Is it JUST a way to pass info from an HTML form to a php script? Or can you pass php variable data from a php script to another php script?
JameZ
You said its a way to pass data from one page to another....how exactly? Is it JUST a way to pass info from an HTML form to a php script? Or can you pass php variable data from a php script to another php script?
JameZ
•
•
Join Date: Sep 2004
Location: in the j00-kay
Posts: 114
Reputation:
Rep Power: 4
Solved Threads: 5
Well yes because its passed using the HTTP headers you can use it for anything from php to ASP to javascript etc.
When requesting a page page.html for example. the header requests it using the URL http://www.domain.com/page.html .
If you pass data in the '$_POST' http variables it is also sent in the header in the form of a string (9 think POST is invisible and GET is visible, i forget which way round that is though) eg. http://www.domain.com/page.html?vari...something_else and so on
You can then call this information for use in say and email script or whatever use you may have for it.
When requesting a page page.html for example. the header requests it using the URL http://www.domain.com/page.html .
If you pass data in the '$_POST' http variables it is also sent in the header in the form of a string (9 think POST is invisible and GET is visible, i forget which way round that is though) eg. http://www.domain.com/page.html?vari...something_else and so on
You can then call this information for use in say and email script or whatever use you may have for it.
I'm pink, therefore, im spam.
http://www.vivaci.net - Quality Webhosting
http://gaming.vivaci.net - FAST UK Gaming servers
http://www.getsigned.org - Free Image Uploads
http://www.vivaci.net - Quality Webhosting
http://gaming.vivaci.net - FAST UK Gaming servers
http://www.getsigned.org - Free Image Uploads
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
Similar Threads
- Problems with uising arrays and $_POST variables (PHP)
- Accessing $_POST values - Its not working :( (PHP)
Other Threads in the PHP Forum
- Previous Thread: Accessing $_POST values - Its not working :(
- Next Thread: Passing variables into form fields


Linear Mode