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 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 …
Jump to PostYes it will if the form fields have a name attribute. Try this and see:
<form> <input name="myfield" /> <input type="submit" value="go" /> </form>
That reminds me, perhaps the OP didn't give a name attribute, just an id
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.