RE: [PHP] Carrying a variable
| From: | Ford, Mike [LSS] | Date: | Tue, 15 Jul 2003 09:59:51 +0000 |
| Subject: | RE: [PHP] Carrying a variable | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-155264@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Ron Allen [mailto:Ronald.Allen@bondsteel2.areur.army.mil]
> Sent: 15 July 2003 10:55
>
> I am using PHP 4.3.0
> The way that I usually carry variables from one page to another is
> $Unit = ($_GET['Unit']);
>
> This is the page that is referencing it!
> <?PHP
> echo "<br><br>";
> $DBName = "SIGO";
> $table1 = "sigo";
> include 'drop.php';
>
> $db = mysql_connect("$DBhost","$DBuser","$DBpass") or
> die("Problem
> connecting");
> mysql_select_db("$DBName") or die("Problem selecting database");
> $query = "SELECT distinct (Unit) FROM $table1";
> $result = mysql_query($query) or die ("Query failed");
> //let's get the number of rows in our result so we can use it
> in a for loop
> $numofrows = mysql_num_rows($result);
> echo "<FORM METHOD=POST ACTION=basefull.php>";
METHOD="GET" => $_GET
METHOD="POST" => $_POST
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211