Welcome! Log In Create A New Profile

Advanced

Section 7 GEt & POST

Posted by 72960736 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Section 7 GEt & POST
July 15, 2013 08:20PM
I like to find out the difference between the $_GET variable and the $_POST variable and when to use PHP$_REQUEST variable.
avatar
Mac
Re: Section 7 GEt & POST
July 16, 2013 08:42AM
GET when you send form data with the URL - have a look in the URL, you will see it is appended there. POST when you want to hide the information, which is better from a security perspective (but still easy to figure out looking at the page source), which is why form data should be sanitized. REQUEST contains all the information, plus COOKIE data. Generally speaking you want to avoid using it. See http://www.tutorialspoint.com/php/php_get_post.htm
Re: Section 7 GEt & POST
July 16, 2013 01:41PM
Section 7 already?
Wowza...I took a 4 day sabbatical...(laziness)..and now I'm falling behind( restarting section 4 ) as I've forgotten a few concepts.
Re: Section 7 GEt & POST
July 16, 2013 07:11PM
Hi Yusuf

Don't worry , I'm also only on section 5 and I keep on going back to the previous sections. I really think you have to understand it 100% before u proceed

Best Wishes
M
Re: Section 7 GEt & POST
July 17, 2013 09:39AM
GET = Send data through the URL
POST = Data is hidden
Request = is more like for general use, U can get cookies info, U can also send data with POST and still receive it with REQUEST
Re: Section 7 GEt & POST
July 17, 2013 08:40PM
Thank you Mac. Now I understand it clearly , when using GET it is possible to bookmark the page because variables are visible in the URL.
Re: Section 7 GEt & POST
July 22, 2013 11:40AM
Hi Mac,

I understand that variables $_GET send form data with the URL and $_POST is when you want to hide information. But I wanted to find out from you if is writting the same variables ($_get and $_post) in small letters, will it result in an error?

Thanks, I will wait for your response.
avatar Re: Section 7 GEt & POST
July 22, 2013 11:50AM
Why don't you just try it, and see for yourself if it works ?
avatar
Mac
Re: Section 7 GEt & POST
July 22, 2013 12:00PM
Because there is a $ in front of it, it is a variable, and variable names are case sensitive....
Re: Section 7 GEt & POST
July 24, 2013 12:33PM
@bigron11 I tried it and it keeps giving me an error on my form that is why I asked the question. Thanks Prof.
Sorry, only registered users may post in this forum.

Click here to login