Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2003
    Posts
    61

    Unanswered: need help with php plz

    how can i create this type of if statement?


    if ($variable!='hello') {$variable='';}

    how do i do this if i don't want to predefine that variable?

    my example doesn't work since it doesn't initially know what $variable is. in that case, i want it to assume that if it doesn't know, give it a value of '' (nothing).

    That variable can actually be valued at 'hello' since i have a form pointing to its page with that variable.

    anyone can help?
    noam

  2. #2
    Join Date
    Mar 2003
    Location
    Atlanta, GA
    Posts
    191

    PHP?

    This is an ASP forum! Sorry!
    Tim

  3. #3
    Join Date
    Jun 2003
    Location
    USA
    Posts
    1,032
    Some good PHP resources:

    php
    http://www.php.net
    (Especially http://www.php.net/manual )

    PHPBuilder
    http://www.phpbuilder.com

    phpfreaks
    http://www.phpfreaks.com

    PHP FAQTS
    http://php.faqts.com
    J. Paul Schmidt, Freelance Web and Database Developer
    www.Bullschmidt.com
    Access Database Sample, Web Database Sample, ASP Design Tips

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •