SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Wizard
    Join Date
    Nov 2000
    Location
    Chico, Ca
    Posts
    1,125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I set up this simple message form using php and it works in everything ( IE, AOL, Opera) execpt Netscape. It's giveing some Method Error. Anyone have any Ideas ?

    Here is the URL

    http://chicostateballroom.com/contact.phtm

    Thanks

    Chuck
    "Happiness doesn't find you, you find happiness" -- Unknown
    www.chuckknows.com

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    By default IE will post to the current doc if the action attribute in your form is not set. In Netscape 4.x it needs to be specified like <form action="<? print $PHP_SELF; ?>" method="post"> It is good practice to always put an action in.
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  3. #3
    SitePoint Wizard
    Join Date
    Nov 2000
    Location
    Chico, Ca
    Posts
    1,125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by freddydoesphp
    By default IE will post to the current doc if the action attribute in your form is not set. In Netscape 4.x it needs to be specified like <form action="<? print $PHP_SELF; ?>" method="post"> It is good practice to always put an action in.
    What is the difference in what you did and this ?

    <form method=\"post\" action=\"$php_self\">

    Thanks

    Chuck

    When I did it the way you showed above I got this

    Parse error: parse error in /www/chicostateballroom/contact.phtm on line 80
    Last edited by Chuckie; Feb 6, 2001 at 14:52.
    "Happiness doesn't find you, you find happiness" -- Unknown
    www.chuckknows.com

  4. #4
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    $PHP_SELF is a server variable, so it needs to be in all CAPS not $php_self. Other than that there is no difference.

    $PHP_SELF //Prints correctly

    $php_self //Doesn't exist
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  5. #5
    SitePoint Wizard
    Join Date
    Nov 2000
    Location
    Chico, Ca
    Posts
    1,125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks .. it all came down to caps .. how funny


    Chuck
    "Happiness doesn't find you, you find happiness" -- Unknown
    www.chuckknows.com


Bookmarks

Posting Permissions

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