graham23s Posted November 13, 2007 Share Posted November 13, 2007 Hi Guys, what im trying to do is when a user clicks a button the get at the bottom of the page grabs it and displays data, i can to it with text no problem but having trouble getting this button to grab it partial code: echo ("<tr>"); echo ("<td colspan=\"2\" align=\"right\"><form action=\"?\" method=\"get\"><input type=\"hidden\" name=\"action\" value=\"show\"><input type=\"submit\" value=\"Show Credits\"></form></td>"); echo ("</tr>"); echo ("</table></form>"); if($_GET['action'] == 'show') { ## display previous credits for editing etc $querycredits = ("SELECT * FROM `userscredits` WHERE `userid`='$var_loggedinuserid'"); $resultcredits = mysql_query($querycredits); echo "this is the get"; } // end get can nayone see the problem at all? thanks guys Graham Link to comment https://forums.phpfreaks.com/topic/77225-problem-with-get-button/ Share on other sites More sharing options...
gin Posted November 14, 2007 Share Posted November 14, 2007 Try use <form action="">, or use POST instead of GET Link to comment https://forums.phpfreaks.com/topic/77225-problem-with-get-button/#findComment-391130 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.