Jump to content

problem with get button


graham23s

Recommended Posts

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.