|
-
Jan 21st, 2013, 01:31 PM
#1
Thread Starter
Lively Member
Row Select, not quite working...
I am trying to submit a value, based on a button click, here is the php code for the button:
echo "<input type='submit' width='100%' id='bonddescription' name='bonddescription[]' value='" .$row['description']. "'><input type='hidden' id='issueid' name='issueid[]' value='".$row['issue_id']."'>";
This renders correctly, however when trying to obtain the submitted value it does not function as expected.
var_dump($_POST[$bonddescription]); shows the value from the correct row
var_dump($_POST[$issueid]); shows the full array, rather than the specific value from the selected row
I need to display the bond description on the button and would prefer to keep the issue_id field hidden if possible, so how can I stop the entire array being submited and just post the single row value, as it does for the description?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|