PDA

View Full Version : vBMenu with HTML-Form in the Post


valeevildar
09-30-2008, 02:00 PM
Hello, I create the vBmenu with form in the post of forum.
I use the Custom BBCode for this.
The Menu created successfully, but while I click on the Send Button,
vBulletin redirect me to the page inlinemod.php?threadid=387&p=8060 and tell me like this:
You have not chosen messages to which it is necessary to apply this action.

Is it possible to create menu with html-form in post?
How can I solve this problem?

The BB-code source:
<div id="sendtofriend" class="vbmenu_control" nowrap="nowrap">
<a href="#">send</a>
<script type="text/javascript">
vbmenu_register("sendtofriend");
</script>
</div>

<!-- sendtofriend menu -->
<div class="vbmenu_popup" id="sendtofriend_menu" style="display:none">
<table border="0" cellpadding="2" cellspacing="1">
<tr>
<td class="vbmenu_option">
<form action="mailer.php" method="post">
To: <input name="to" type="text" value="" size="52"><br/><br/>
From: &nbsp;&nbsp;&nbsp;<input name="from" type="text" value="" size="52"><br/>
Text:<br/>
<textarea name="message" rows=7 cols=50 wrap="on"></textarea><br/><br />
Some Static Text: <input name="ps" type="text" readonly value="Some Value" size="48"><br/>
Captcha:<br />
<img src="securimage/securimage_show.php?sid=<?php echo md5(uniqid(time())); ?>"><br />
<input type="text" name="code" size="25"/><br /><br />
<input type="submit" value="Send">
</form>
</td>
</tr>
</table>
</div>
<!-- / sendtofriend menu -->

Marco van Herwaarden
09-30-2008, 02:12 PM
You can not embed (AFAIK) a form within another form, and posts are already a form.

valeevildar
10-02-2008, 01:09 PM
Many Thanks!
This decision does not work for moderators and administrators, however can be quite used for usual users. Thanks for the rendered help.