MDanz Posted May 7, 2010 Share Posted May 7, 2010 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"; } Link to comment https://forums.phpfreaks.com/topic/200959-form-loop-problem/ Share on other sites More sharing options...
MDanz Posted May 7, 2010 Author Share Posted May 7, 2010 in short, how do i make a pop up form? what i've done is a pop up div and i'm adding a form to it, which isn't working. Link to comment https://forums.phpfreaks.com/topic/200959-form-loop-problem/#findComment-1054389 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.