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? 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. 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. Link to comment https://forums.phpfreaks.com/topic/189110-variable-passing-empty/#findComment-998412 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.