michaelcunning Posted December 7, 2007 Share Posted December 7, 2007 hi there, I'm very new to php but am having a problem! I have a page that contains a form with blocks of text within labels and each block having it's own push button. The reason being that each block has information about a gift voucher and the user pushes the push button associated with the block to 'apply' for the gift voucher. Upon pushnig the button, I want the user to be presented with a page that contains the info from the block so it can be emailed. Basically, I am looking to know how you pass the text from within a label (or labels) to a page using php or whatever. When I change the labels to text boxes, it passes to the new page fine using $_POST etc but when the text is contained within the labels it doesn't pass. Can anyone help or tell me whey $_POST won't work and what will? thanks in advance Quote Link to comment Share on other sites More sharing options...
revraz Posted December 7, 2007 Share Posted December 7, 2007 Post your form so we can see what you're doing Quote Link to comment Share on other sites More sharing options...
boushley Posted December 7, 2007 Share Posted December 7, 2007 Only certain things are sent when you submit a form. Usually input's, select boxes etc. Labels are not one of those things. You can add a hidden input like this <input type="hidden" name="section" value="My Section Name"> Quote Link to comment Share on other sites More sharing options...
michaelcunning Posted December 7, 2007 Author Share Posted December 7, 2007 There's no way to pass text from a label to another page using php and $_POST or similar ? I could use hidden fields but then there would be repetition on the page? Quote Link to comment 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.