i have a div that is a pop-up, and it is in a loop. I want to add a form to the below code so i can send the data in the textarea to the next page. Because it is a pop-up, the style changes from display:none to display:block, but when i add the form code to below it loops and ignores the style attributes, so now 30 submit buttons are appearing.
Is there another way to send data between pages rather than form? if not how can change the below code to respect the pop up code.
<div id='$counter1' style='display:none;' >
<textarea style='height:50%;width:90%;'></textarea>
<input type='submit' name='webpage' value='Add Webpage' onClick='location.href=\"http://www.example.com/stacker.php?topic=$search&pos=$counter\"' />
<input type='submit' name='thread' value='Add Thread' onClick='location.href=\"http://www.example.com/post.php?topic=$search&pos=$counter\"' />
<input type='submit' name='image' value='Add Image' onClick='location.href=\"http://www.example.com/image.php?topic=$search&pos=$counter\"' />
</div>
function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
if(d.length < 1) { return; }
var dd = document.getElementById(d);
AssignPosition(dd);
dd.style.display = "block";
}