Jump to content

[SOLVED] Passing variable with Submit button


jcstanley

Recommended Posts

Hi

 

I am creating a basic forum for my site.  To begin with i just used boring old hyperlinks, but am now converting them to buttons.  The problem i have is that when a variable (ie. $id) neededs to be passed it doesn't work:

 

Before (working):

<a href='reply.php?id=$id'>Reply</a>

 

After (not working):

<FORM METHOD='LINK' ACTION='reply.php?id=$id'><INPUT TYPE='submit' VALUE='Reply' style='color: #ffffff; font-weight:bold; background-color: #003366; font-size:10px'></FORM>

 

When the button is clicked the address bar does not contain the value stored in the $id variable eg:

reply.php?id=

 

Can this be solved?

 

Many thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.