Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Problem with $_POST vars

    Ok, I've got a php page that is basically a signup. But, for some reason, the Submit is not being included in the POST data.

    I've hard coded some test data into the form on this page so just submit it and look at the output. The Submit doesn't show up!

    Now, I'm using a template system for this site, so I just took the template that holds the form and performed a test with it here As you can see, it's the same thing, but on this page (when you submit it) the submit comes through with the POST data.

    Any help would be great, coz I'm !!!

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    It depends on what version PHP you're using.
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #3
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    PHP 4.2.1
    Apache 1.3.26
    MySql 3.23.49
    Linux 7.2 (or 7.3, I'm not sure)

  • #4
    Regular Coder KevinG's Avatar
    Join Date
    Aug 2002
    Location
    The Matrix
    Posts
    405
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Hey beetle

    try this script - just place it in your thank you page and make your form call it up.


    <?
    $sitename=getenv("HTTP_HOST");
    $message.="Site: $sitename\n\n";
    while ( list( $key, $val )=each($HTTP_POST_VARS) )
    {
    $message .="$key : $val\n" ;
    }
    mail("info@yoursite.com","website enquiry",$message,"From: mail.yoursite.com");
    ?>

    actually, i'm not sure i understood your question.
    Last edited by KevinG; 08-09-2002 at 11:37 PM.

  • #5
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,093
    Thanks
    11
    Thanked 101 Times in 99 Posts
    your javascript on the form page wont let me submit the form anyway - keeps asking for me to enter my name even though I have filled in al the fields.

    as for Submit - are you accessing via $Submit or $_POST[Submit] ? depending on server configuration you would need to use $_POST['Submit'] or $HTTP_POST_VARS['Submit']
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #6
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks firepages, but none of those are the problem. I've circumvented it with another method.

    However, about the javascript. It's not fully compatible yet. what browser are you using?

  • #7
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,093
    Thanks
    11
    Thanked 101 Times in 99 Posts
    today on IE 5.0
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #8
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Doesn't version 4.2.1 have a security hole? Better use 4.2.2
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #9
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Does it? What hole?


  •  

    Posting Permissions

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