Re: PASSING VARIABLES...



In a link:

www.somedomain.com/dir/page.php?var1=val1&var2=val2

If the user clicks on this link, it will take them to page.php. Inside
page.php you can access the variables like this:

$var1 = $_GET['var1'];
$var2 = $_GET['var2'];

Alternatively, you can pass them in a form using the POST method. For
instance, you could accomplish the same thing as above and let the user
input the values for var1 and var2:

<form action="page.php" method="post">
<input type="text" name="var1"/>
<input type="text" name="var2"/>
<input type="submit" name="submit" value="submit"/>
</form>

So once the user fills in the form and hits submit, they'll be
redirected to page.php. On page.php you can access those values like
this:

$var1 = $_POST['var1'];
$var2 = $_POST['var2'];

.



Relevant Pages

  • Copy a Structure
    ... How do I copy a contents of a Structure pointer to a Structure ... I want to copy contents of Structure pointed to by Var2 to a Structure var1. ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Copy a Structure
    ... to by var2 into var1. ... How do I copy a contents of a Structure pointer to a Structure ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Attribute Definitions and other questions
    ... > Let's say I have a tagged type T. ... > var1: T; ... > var2: T; ... Prev by Date: ...
    (comp.lang.ada)
  • Re: [PHP] string as file
    ... This is an example of $var1 and $var2. ... I think that neither you nor Greg understands what I'm looking for. ... Use regular expressions or straight string replacements - that's the best way to implement mail-merge type behaviour. ...
    (php.general)
  • Re: Newbie Question
    ... but I am not all that familiar with most of cobol. ... var2 pic 9 ... MOVE VAR2 TO VAR1 is executed, what is actually stored in var1. ... loop through it digit by digit, ...
    (comp.lang.cobol)