If you have register_globals on in your php.ini file, you don't need to do that. You just automatically have access to all of those variables like $username and $password etc. Whatever the name is on the field is what the string will be called and the action script can access those immediately by $+the_field_name.
----- Original Message ----- From: "Mike Mapsnac" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 11, 2004 9:51 AM Subject: [PHP] Get "nice" variables from POST > I have about 10 fields in the form. And I get the fields through POST: > //Get Variable from the form > $username = $_POST['username']; > $password = $_POST['password']; > $password2 = $_POST['password2']; > $email = $_POST['email']; > $email2 = $_POST['email2']; > $nickname = $_POST['name']; > $city = $POST['city']; > $state = $_POST['state']; > $country = $_POST['country']; > $misc = $_POST['misc']; > $country = $_POST['country']; > > It works but it looks ugly. For each variable I have statemet. Is there a > way to get the variables in the loop? > > I'm looking for "nice" way to get variables from POST? > > Thanks > > _________________________________________________________________ > Frustrated with dial-up? Lightning-fast Internet access for as low as > $29.95/month. http://click.atdmt.com/AVE/go/onm00200360ave/direct/01/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php