Date: 05/28/00
- Next message: Luca: "[phplib] Some changes to tpl_form.inc"
- Previous message: Marc Pijnappels: "[phplib] I'm lost. How to handle form vaiables? Register?"
- In reply to: Marc Pijnappels: "[phplib] I'm lost. How to handle form vaiables? Register?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Marc!
> After reading a lot of mails I still don't get it really. When I use
> forms and want to post the variables what do I really need to do to
> make save use of the forms variables on another pages.
Formvariables can be easily used in php.
You just refer to the name of the form element used in <input name=".."
...>.
So if you have an element named "email", you can use it on the action
page by refering to the variable $email.
Example:
<form action=control.php method=post>
<input type=text name=email>
...
</form>
And on the action page, here control.php, you use:
...
if ($email != "") { // or you can use isset($email)
print "field email is not empty.";
}
...
happy hacking
boris
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Luca: "[phplib] Some changes to tpl_form.inc"
- Previous message: Marc Pijnappels: "[phplib] I'm lost. How to handle form vaiables? Register?"
- In reply to: Marc Pijnappels: "[phplib] I'm lost. How to handle form vaiables? Register?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

