skip to main
|
skip to sidebar
C #, Asp.net, VB.net PHP
Please Comment out ur Exper about the Above Langauges
Monday, October 26, 2009
The Method Attribute of HTML Forms php
If you look at the first line of our form from the previous page, you'll notice a METHOD attribute:
The Method attribute is used to tell the browser how the form information should be sent. The two most popular methods you can use are GET and POST. But our METHOD is blank. So change it to this:
To see what effect using GET has, save your work again and then click the Submit button on your form. You should see this:
The thing to notice here is the address bar. After basicForm.php, we have the following:
?Submit1=Login
This is a consequence of using the GET method. The data from the form ends up in the address bar. You'll see a question mark, followed by form data. In the image above, Submit1 was the NAME of the button, and Login was the VALUE of the button (the text on the button). This is what is being returned by the GET method. You use the GET method when the data you want returned is not crucial information that needs protecting.
You can also use POST as the Method, instead of GET. Click below to see the difference.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Followers
Blog Archive
▼
2009
(50)
▼
October
(50)
Begning in php chapter 1
What you need to get started with PHP
Troubleshooting
What is a Variable in PHP?
Adding up in PHP
Putting Text into Variables
Variables - Some Practice
More Variable Practice
Concatenate
How to Subtract in PHP
PHP and Multiplication
PHP and Division
Floating Point Numbers in PHP
If Statements in PHP
Using If Statements in PHP
if … else Statements in PHP
if … else if Statements in PHP
if … else if Statements in PHP
Comparison Operators in PHP
Not Equal To
How to use "Less Than" and "Greater Than" in PHP
What these mean: <= >=
The PHP Switch Statement
Logical Operators
Boolean Values in PHP
Operator Precedence – a List
The HTML Form php
The Method Attribute of HTML Forms php
The POST Attribute of HTML Forms
The POST Attribute of HTML Forms
The ACTION Attribute of HTML Forms php
The Submit Button of a HTML FORM php
Getting values from a Text Box with PHP
Checking if the Submit Button of a HTML Form was C...
Checking if the Submit Button of a HTML Form was C...
Setting ACTION to a different PHP Page php
Keeping the data the user entered PHP
PHP and Radio Buttons
PHP and HTML Checkboxes
For Loops in PHP
A PHP "Times Table" Programme
The Code for the PHP Times Table Programme
While Loops in PHP
Do While loops in PHP
How to break out of PHP Loops
What is an Array? php
How to Set up an Array in PHP
Getting at the Values Stored in PHP Arrays
PHP Arrays - Using Text as Keys
PHP Arrays and For Each Loops
About Me
Faisal Motan
Karachi, sindh, Pakistan
Developer
View my complete profile
No comments:
Post a Comment