vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   vBMenu with HTML-Form in the Post (https://vborg.vbsupport.ru/showthread.php?t=192315)

valeevildar 09-30-2008 01:00 PM

vBMenu with HTML-Form in the Post
 
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 01:12 PM

You can not embed (AFAIK) a form within another form, and posts are already a form.

valeevildar 10-02-2008 12: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.


All times are GMT. The time now is 01:19 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01555 seconds
  • Memory Usage 1,706KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete