mudi Posted October 25, 2008 Share Posted October 25, 2008 Where do i get 'message' where i look for it. im new to php. Thanks MudiW Quote Link to comment https://forums.phpfreaks.com/topic/130085-easy-question-what-is-_getmessage/ Share on other sites More sharing options...
DarkWater Posted October 25, 2008 Share Posted October 25, 2008 ...What? $_GET contains variables passed in from the URL, so if you have a URL like page.php?message=Test, $_GET['message'] will be equal to 'Test'. Quote Link to comment https://forums.phpfreaks.com/topic/130085-easy-question-what-is-_getmessage/#findComment-674476 Share on other sites More sharing options...
kenshintomoe225 Posted October 25, 2008 Share Posted October 25, 2008 just to kind of add on to what DarkWater is saying, $_GET will be used when the method attribute on a form is set to get. For example: <form name="myGreatForm" action="do/thing" method="GET"> All data is then pass to your PHP script via the URL itself. More specifically, method=get makes use of a specific feature of the HTTP request structure. The other option is POST, where data is not passed via the URL, but in a "part" of the HTTP request that is usually not visible to the user. Since you said you're new, welcome to PHP I'm sure you'll love it as much as we do! Quote Link to comment https://forums.phpfreaks.com/topic/130085-easy-question-what-is-_getmessage/#findComment-674561 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.