co.ador Posted January 20, 2010 Share Posted January 20, 2010 <?php echo "cart.php?action=remove_item&ids=" . $ids. '&qty=1'. '®ister='. $_GET['register']. '&id='.intval($id).""?>> The variable ids above is passing empty. Is there anything with the structuring of the link above? Quote Link to comment https://forums.phpfreaks.com/topic/189110-variable-passing-empty/ Share on other sites More sharing options...
Sesquipedalian Posted January 20, 2010 Share Posted January 20, 2010 Does $ids actually have a value? Maybe make sure that it's actually passing a variable. Also - you might want to tidy up your code a bit. You have an extra > at the end of your code, and you forgot to use a semicolon ; to end the echo. Quote Link to comment https://forums.phpfreaks.com/topic/189110-variable-passing-empty/#findComment-998395 Share on other sites More sharing options...
co.ador Posted January 20, 2010 Author Share Posted January 20, 2010 <a href=<?php echo "cart.php?action=remove_item&id=" . intval($id).'&qty=1' . '®ister='. $_GET['register']. '&ids=' . $row["id"] . ""?>> Now it is working, the ids variable is passing but now the id= variable is not! Well before it was passing but not now. after I have indext the ids to the id of the table ids variable is passing but then id=" . intval($id).' has stop passing. Quote Link to comment https://forums.phpfreaks.com/topic/189110-variable-passing-empty/#findComment-998412 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.