Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Position of Radio button
- </td><td id="logos">
- <input type="radio" name="logo_radio" value="test5.jpg" checked>test5.jpg<br>
- <input type="radio" name="logo_radio" value="malvorlagenfeuerwehr04.jpg">malvorlagenfeuerwehr04.jpg<br>
- </td></tr>
- //Calling now window with a button:
- <input name="logo_test" type="button" onclick="document.formLogo.submit();" Value="Neues Logo laden">
- <form name="formLogo" enctype="multipart/form-data" action="add_logo.php" method="post" accept-charset="ISO-8859-1" target="_blank">
- <input type="hidden" name="id" value="{$_POST['id']}">
- <input type="hidden" name="eintrag" value="$eintrag">
- </form>
- <script type="text/javascript">
- try {
- var newRadioButton = document.createElement("input");
- newRadioButton.setAttribute('type','radio');
- newRadioButton.setAttribute('name','logo_radio');
- newRadioButton.setAttribute('value','$file_new');
- var obj1 = window.opener.document.getElementById("logos");
- obj1.appendChild(newRadioButton);
- }catch(err) {alert(err.message);}
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement