1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Rep Power
    I am a developer wanting to make the transition from asp to php3 and would like some info from anyone who can help since the documentation is a little vague in some areas.

    What I need is the equivalent of:

    my_var = request.form("posted_var")

    Which would turn the variable "my_var" into whatever the posted variable "posted_var" was.

    This is done using the POST method and not GET.

    Any help would be appreciated.


  2. #2
  3. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Niagara Falls (On the wrong side of the gorge)
    Rep Power
    Form entries are automatically placed into variables in the target php3 script. IOW, if you have the form element:

    <form action=some.php3 method=post>
    <input type=text name=name>

    Than some.php3 would have the value entered in that element in the variable $name.

    If you want the form elements in an array they will also be in the array $HTTP_POST_VARS (in this case $HTTP_POST_VARS[name]). Which, incidently, I convert to $hpv if I plan on using it, since $HTTP_POST_VARS can be a bit much to type

    BTW, if you are interested, there is a program that converts ASP scripts to PHP called, you guessed it, asp2php. I don't have any links but you can do a search at www.phpbuilder.com for it and you should find it.

    [This message has been edited by rod k (edited March 13, 2000).]
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Rep Power
    $my_var = $posted_var;

    is this all you wanted?


Similar Threads

  1. Replies: 2
    Last Post: August 18th, 2004, 10:45 PM
  2. php script to change pop3 password?
    By jensm in forum PHP Development
    Replies: 0
    Last Post: February 13th, 2004, 02:45 PM
  3. Change this PHP script to use NETPBM instead of GD
    By hknight in forum Project Help Wanted
    Replies: 1
    Last Post: February 10th, 2004, 11:46 AM
  4. Need help with making change in C+
    By dmizzle06 in forum C Programming
    Replies: 8
    Last Post: February 9th, 2004, 04:44 PM
  5. Replies: 4
    Last Post: January 28th, 2004, 08:29 AM

IMN logo majestic logo threadwatch logo seochat tools logo