I have the same issue, either POST or GET, when running the codes in localhost, they give me empty values but everything works fine when running them to my hosting..weird.. I'm now doing some back ups, will reinstall my localhost server.. any help please.. thanks

Recommended Answers

All 3 Replies

please show us the code

I tried simple codes like below:

FORM:

<form action = "testaction.php" method="post">
<input type="text" name="textfield" id="textfield" />
<input type="submit" name="submit" id="submit" />
</form>

TESTACTION.PHP

<?
print $_POST;
?>

Codes are all working on my hosting(online) but not on my localhost.

I tried reinstalling my apache server and text editors, I also cleaned my browsers, hope these will work... will let you know.. but if you have ideas.. please do help.. thank you much..

working now, I guess it's with my cache... thanks anyway.. ^ ^

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.