www.webdeveloper.com
Results 1 to 6 of 6

Thread: HTML form->PHP variable. How?

  1. #1
    Join Date
    May 2003
    Posts
    29

    Question HTML form->PHP variable. How?

    Yup, I'm hopeless. Maybe someone knows a good PHP tutorial for me . Can someone help me(again :P )

  2. #2
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    I would recommend using the POST method on your form, and then you are able to reference them like this: $_POST["fieldname"] where fieldname is the name of your formfield. If you choose to use GET, you reference them like this: $_GET["fieldname"]

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  3. #3
    Join Date
    May 2003
    Posts
    29
    so I would do this:

    $whatever = $_POST("text_input");

    Would I have this in the HTML or in the form target file?

  4. #4
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    The form target file, and they need to be brackets [] rather than parenthesis ()

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  5. #5
    Join Date
    May 2003
    Posts
    29
    oops... OK thanks.

  6. #6
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    You also asked for PHP resources... you may be interested in the following sites:

    http://www.php.net (my personal favorite)
    http://www.phpbuilder.com/
    http://hotwired.lycos.com/webmonkey/...php/index.html
    http://php.resourceindex.com/
    http://www.zend.com/
    more links can be found at http://www.php.net/links.php

    Here's a good list of PHP editors:
    http://phpeditors.dancinghippo.com/

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles