Sajesh Mohan Posted September 26, 2012 Share Posted September 26, 2012 i am creating a plugin in wordpress. that need a file uploading option. i use this code <a onclick="return false;" title="Upload image" class="thickbox" id="add_image" href="media-upload.php?type=image&TB_iframe=true&width=640&height=105">Upload Image</a> need to append your Hyperlink to media-upload.php to really make it working ? my issue is that how to get the value to my textbox. but insert to post option is missing <form action="insert_logo.php" method="get" id="post" name="post"> <table width="770" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="4"> </td> </tr> <tr> <td> </td> <td colspan="3"><h3>Add Client Logo</h3></td> </tr> <tr> <td colspan="4"> </td> </tr> <tr> <td width="76" height="34"> </td> <td width="75">Logo</td> <td width="145"><input name="client_logo" id="name="client_logo"" type="text" /></td> <td width="474"><a onclick="return false;" title="Upload image" class="thickbox" id="add_image" href="media-upload.php?type=image&TB_iframe=true&width=640&height=105">Upload Image</a> </td> </tr> <tr> <td> </td> <td>Url</td> <td><input name="name=" id="name=2"client_logo"" type="text" /></td> <td>[Eg: http://www.sitename.com]</td> </tr> <tr> <td> </td> <td> </td> <td><p class="submit"><input name="addlogo" type="submit" id="addlogo" class="button-primary" value="Submit" /></p></td> <td> </td> </tr> <tr> <td colspan="4"> </td> </tr> </table> </form> Quote Link to comment https://forums.phpfreaks.com/topic/268809-in-word-press-plugin-creation-need-a-image-upload/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.