On Fri, 29 Aug 2003 11:00:14 -0700, you wrote:

>This might be staring straight at me, but I can't seem to figure out  
>how to reference form parameters in php code. For example:
>
>
><?php
>       if ($formName["fieldName"] == "this") {
>               // do this
>       } else {
>               // do that
>       }
>?>

Depending on how the form was sent to the server:

        if ($_POST['fieldname'] == 'this')

        if ($_GET['fieldname'] == 'this')

if register_globals is off.

        if ($fieldname == 'this')

if register_globals is on.

Though this is such a simple one, maybe I'm misunderstanding the question.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to