Results 1 to 6 of 6

Thread: form variables - wired problem

  1. #1

    Thread Starter
    Hyperactive Member deane034's Avatar
    Join Date
    May 2001
    Location
    Sri Lanka
    Posts
    485

    Angry form variables - wired problem

    hi guys... i am havin a wired problem.. i cant seem to read the submited variables... somettin.. simple as the code bleow doesnt work

    Code:
    <html>
    
    <head>
    
    <title>MYcolor </title>
    </head>
    
    <body>
    
    <form  action="check.php" method = "post">
      
       <input type="text" name="mycolor" size="20"  ></p>
    
      <p><input type="submit" value="Submit" name="B1"></p>
    
    </form>
    
    
    </body>
    
    
    
    <?php
    
    echo("Your Fave color is $mycolor") ;
    
    
    ?>
    me.life = VB

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    You can't access submitted values this way anymore. See the second sticky post on top of the forum.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    well you can if register_globals are ON. but that way is not reccomended anymore.

  4. #4

    Thread Starter
    Hyperactive Member deane034's Avatar
    Join Date
    May 2001
    Location
    Sri Lanka
    Posts
    485
    no kiddin!.. since when.. i guess my book is.. outdated

    recocmdend.. a good book btw..
    me.life = VB

  5. #5
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    since php 4.1 and yes all the books are out dated tha ttalke about 4.0.6

  6. #6
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    That's why I WOULDN'T recommend ANY books on PHP. It's a rapidly changing language.

    Find a tutorial on the web that introduces you to PHP, and then get familiar with http://www.php.net/'s Manual. There's even a downloadable version.
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

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



Click Here to Expand Forum to Full Width