Jump to content

*SOLVED* Information sent with form not appearing in POST.


Vorotaev

Recommended Posts

First the code in question (just a test case):

[code]// This page is receive.php

<form action="receive.php" method="post">
    <input id="message" type="text" size="16" />
    <button type="submit">Submit</button>
</form>

<br /><br />

<?php

if(!$_POST == NULL) {
    echo ($_POST['message']);
}

?>[/code]

I've been having quite a bit of trouble with information being sent via form not ending up in the $_POST array. I tried simplifying the script as much as possible, thinking something else in the code was messing it up, but the above is about as barebones as I can make it and still doesn't work.

I'm running Apache 2.0.55 with PHP 5.1.2 on Windows XP Home SP2. It may be worthy of note that before upgrading Apache and PHP a few days ago (from 2.0.48 and 5.1.0 respectively), this problem didn't occur.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.