i'm trying to analyse this php, i noticed that whenever i enter values into textfield,
like input type="text", and i retrieve the data, it is not showing in the address bar like,
www.host.com/login.php?usermae="user"&password="pass".
Please why is this happening, is it a new feature in php? or something else.
javacle
-2
Newbie Poster
Recommended Answers
Jump to Postafaik PHP has never done this for input values by default. Form input values are available via the
$_POST
variable on the server. If you want to pass them via the url, I think you have to construct the url yourself as a string and link or redirect to it. …
Jump to Postforms pass data as get if no 'method' attribute is set (get = default)
if you set the method attribute to post, you pick up the data with the $_POST superglobal as opposed to the $_GET superglobal (as mentioned by Hearth).I agree entirely with Hearth that you should NOT …
All 6 Replies
|-|x
126
Junior Poster in Training
diafol
|-|x
126
Junior Poster in Training
diafol
javacle
-2
Newbie Poster
|-|x
126
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.