xyn Posted July 2, 2006 Share Posted July 2, 2006 Hi guys.I am basically wondering how i can do something with $_GET['blob']; var. Because I wanted to be able to use this:page.php?del=[color=red]post[/color]&id=[color=red]ID[/color].But I don't know how to do it, Also When i try using more than one $_GET the code wont work. Quote Link to comment https://forums.phpfreaks.com/topic/13445-mysql-deleting-help/ Share on other sites More sharing options...
redarrow Posted July 2, 2006 Share Posted July 2, 2006 play with the example i am providing to understand ok.test.php the link ok.<?phpecho"<a href='test_result.php?&cmd=delete'>try me</a>";?>test_result.php<?phpif($_GET['cmd']==delete){echo "delete database entry";}else{echo "no not there ok!";}?> Quote Link to comment https://forums.phpfreaks.com/topic/13445-mysql-deleting-help/#findComment-51971 Share on other sites More sharing options...
Orio Posted July 2, 2006 Share Posted July 2, 2006 What are you using? I form using the GET method, or a link?1) If it's a form, the form should look like this:<form action="action.php" method="GET"><input type="text" name="field1"><input type="text" name="something"><input type="submit">And the "action.php" will recieve the vars: $_GET['field1'] and $_GET['something']2) If it's a link, the like should look like:<a href="action.php?field1=value&something=somethingelse" ....>And the "action.php" will recieve the vars: $_GET['field1'] and $_GET['something']Orio. Quote Link to comment https://forums.phpfreaks.com/topic/13445-mysql-deleting-help/#findComment-51973 Share on other sites More sharing options...
xyn Posted July 2, 2006 Author Share Posted July 2, 2006 I got it working eventually! Lol. thx =] Quote Link to comment https://forums.phpfreaks.com/topic/13445-mysql-deleting-help/#findComment-51974 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.