05-31-2010, 11:36 AM
Hey everyone, haven't posted here in a while but I'm having an issue with PHP and figured this would be a good place to go.
I'm working on a custom script, specifically the messaging system, and I have the form to submit the message -
- but when I access the $_POST array, the value for any array item is " ". It can be accessed via -
- though. Any ideas on what might be causing this?
I'm working on a custom script, specifically the messaging system, and I have the form to submit the message -
Code:
<form action="inc/msg/send.php" method="post">
<label>To:
<input type="text" name="to"></input>
</label><br><br>
<label>Subject:
<input type="text" name="subject"></input>
</label><br><br>
<label>Message:
<textarea name="message"></textarea></input>
</label><br><br>
<input type="submit"></input>
</form>
- but when I access the $_POST array, the value for any array item is " ". It can be accessed via -
PHP Code:
$data = file_get_contents('php://input');
- though. Any ideas on what might be causing this?