Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. //Position of Radio button
  2. </td><td id="logos">
  3. <input type="radio" name="logo_radio" value="test5.jpg" checked>test5.jpg<br>
  4. <input type="radio" name="logo_radio" value="malvorlagenfeuerwehr04.jpg">malvorlagenfeuerwehr04.jpg<br>
  5. </td></tr>
  6. //Calling now window with a button:
  7. <input name="logo_test" type="button" onclick="document.formLogo.submit();" Value="Neues Logo laden">
  8. <form name="formLogo" enctype="multipart/form-data" action="add_logo.php" method="post" accept-charset="ISO-8859-1" target="_blank">
  9. <input type="hidden" name="id" value="{$_POST['id']}">
  10. <input type="hidden" name="eintrag" value="$eintrag">
  11. </form>
  12.  
  13. <script type="text/javascript">
  14. try {
  15. var newRadioButton = document.createElement("input");
  16. newRadioButton.setAttribute('type','radio');
  17. newRadioButton.setAttribute('name','logo_radio');
  18. newRadioButton.setAttribute('value','$file_new');
  19. var obj1 = window.opener.document.getElementById("logos");
  20. obj1.appendChild(newRadioButton);
  21. }catch(err) {alert(err.message);}
  22. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement