August 1999
Intermediate to advanced
1488 pages
72h 53m
English
request.method
The method property of the request object specifies the HTTP method used in the request. This can either be PUT or GET, depending on the submission type.
Listing 8.109 shows how you can use the same page to display a form and interpret it. If the method is POST, you know it was a form submission. If it was GET, you display the form.
<SERVER>
// See if they have submitted or just need the form
if(request.method == "POST"){
// Perform your processing of the form here
}else{
// Write the actual HTML form here
}
</SERVER>
|
Read now
Unlock full access