Jump to content

Declair an id


rusking

Recommended Posts

<label id="TABLE" value="DEBITS" selected="selected" </label>

Im trying to just declare the ID "TABLE" as "DEBITS" it was a drop down adn now i need it staic for when i call it later. It is in a form. So ill be calling it $_POST[TABLE]. Im just a little uncertain how to achive this as this value is declared from another page too so i can change how i call it just how this page (one above) declairs it. Anyone got any pointers?

Link to comment
Share on other sites

In order for something to be posted to a PHP page it has to be in a form element such as input, textarea, select, etc. If you just want a static value then use a hidden input to send it. Something like this, if you want the user to see something in addition to it being posted:

 <div><input type="hidden" name="TABLE" value="DEBITS">DEBITS</div>
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.