Hi Everyone, I have a very strange issue with Posting a variable to a new page and reading the variable through GET -
I have used the same code many many times on different pages but for some reason, I am unable to GET the Post variable to use and display data from mysql database.
The code I am using to POST is
<form method="post" action="checkout.php">
<input type="text" name="producturl" id="producturl" value="<? echo $producturl; ?>">
<input type="submit" data-placement="bottom" rel="tooltip" class="btn btn-primary checkout" title="Add <? echo $producturl; ?> To Shopping Cart" value="Click To Continue Purchase">
</form>
The post variable is normally in a hidden type, I have placed it in a text to make sure I am seeing the correct variable, The variable is correct.
The checkoup page is where the problem is -
If I enter an incorrect DB name, I get an error as you would expect.
The strange problem is, If I change the include file from ../filename.php to ../../filename.php I get no error message - I would expect to see unable to load no such file name as location etc etc.
The code to GET the producturl is on checkout.php page is
if (isset($_POST['producturl'])) {
$producturl = $_POST['producturl'];
But I am unable to read the variable, How can I test the variable is being posted correctly?