SL
|
| Posted: 06/03/2003, 4:34 AM |
|
Hi there.
I struggle to retrieve information from my forms e.g the value of a textbox. In ASP I used request.form. Is there a similar function in php?
Thanx.
SL
|
|
|
 |
rclayh
|
| Posted: 06/03/2003, 5:21 PM |
|
You can access the information just using $formfieldname in most cases. Also CodeCharge Studio has some specific ways to access the form values which are documented quite well in the help file.
Here is an example from the help that should give you an idea of the syntax
function Registration_OnValidate() {
global $Registration;
if ($Registration->Password->GetValue() != $Registration->Confirm->GetValue()) {
$Registration->Errors->addError("The values of Password and Confirm fields do not match.");
}
}
In this example $Registration->Password->GetValue() refers to the form field Password on the Registration form.
|
|
|
 |
|