I need the value from a loop witch is $row->value, then when I click on button_click(href) a DIV popup will show and ask for another value that is idnumber.
At the popup a submit button will direct to next_page.php
I want both value from loop $row->value and at popup value=idnumber send to next_page.php
<div id="show_popup"(hide/show popup)>
<form action="next_page.php" method="GET or POST">
<input name="idnumber" type="text" value="">
<input type="submit" value="button">
</form>
</div>
<?php
foreach($foo as $row){
echo "
<tr>
<td>".$row->value."</td>
<td><a class='button' href='#' onlick='(popup DIV)'>button_click</a></td>
</tr>";
}
?>
Is this possible?
$(function() {
function launch() {
$('#show_popup').lightbox_me({centered: true, onLoad: function() { $('#add-new-popup').find('input:first').focus()}});}
$('.button').click(function(e) {
$("#show_popup").lightbox_me({centered: true, onLoad: function() {
$("#show_popup").find("input:first").focus();}});e.preventDefault();
});
});
Add this to your click handler: