I have been doing PHP dev for quite a while, and have my own scripts for news and various other things, that i know work. However, i have come to use these on a different server, and for some reason, the server seems to be "dropping" the post vars between a form, and the page that processes it.
I have tried doing $HTTP_POST_VARS & $_POST... neither seem to work...
<FORM ACTION="aframe.php?apage=donews&method=add" METHOD="post" id=frmNewNews name=frmNewNews align="center">
Headline<br> <input type=textbox name=txtHeadline><br>
Story<br> <TEXTAREA rows=10 cols=50 id=textarea1 name="txtStory"></TEXTAREA><br> <br>
<input type=submit value="Submit news">
$action = $HTTP_GET_VARS['method'];
^^ *** This bit works fine *** ^^
$headline = $HTTP_POST_VARS['txtHeadline'];
$story = $HTTP_POST_VARS['txtStory'];
For some reason, $headline & $story are always just blank if i try to echo (eg echo $story;) them, or do something with them.
Does anyone know why it would be doing this?