Re: Problem of varibles between webpages
| From: | edwardspl at ita dot org dot mo | Date: | Fri, 24 Dec 2004 02:22:03 +0000 |
| Subject: | Re: Problem of varibles between webpages | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-205111@lists.php.net to get a copy of this message | ||
Hello,
For table form format ( sample ),
<form method="" action="">
<table>
<tr><td>Your Name : </td><td><input name="name" size=30
maxlength="60"></td></tr>
<tr><td>Address:</td><td><input name="address" size=30
maxlength="60"></td></tr>
</table>
</form>
"name" and "address" is varible, so how can we pass these two varible without
register_globals function ( actually it is disable ) to another webpage ?
Many thank for your help !
Edward.
John Holmes wrote:
> > From: edwardspl@ita.org.mo
>
> > After disable the globals varibles function...
> > Then how to transfer varibles between webpages with the following ways ?
>
> register_globals has nothing to do with how you pass variables... you still use the URL or
> forms. It only changes how you access them in PHP scripts, i.e. using $_GET['var'] instead
> of $var.
>
> > 1, Table form format.
>
> wtf is this?
>
> > 2, Hyperlink ( click and go to another webpage ) format.
>
> The variables passed in a URL are available in $_GET and $_REQUEST.
I have ever try to use $_GET and $_REQUEST, but fail...
I will send my samples in here.
> > 3, upload file ( through php into database ).
>
> $_FILES
>
> ---John Holmes...
>
> UCCASS - PHP Survey System
> http://www.bigredspark.com/survey.html