vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Submit Form in Navbar (https://vborg.vbsupport.ru/showthread.php?t=99468)

MrSDavidson 10-27-2005 08:18 PM

Submit Form in Navbar
 
Is it possible to update a Single-Selection Menu with a save button in the Navbar rather than in User Control Panel > Edit Options.
If so could someone possibly give me some directions as to how to do this?

timetunnel 10-28-2005 02:21 AM

Hello.

Not quite sure I follow...

Can you provide an example, please?

Thanks.

MrSDavidson 10-28-2005 07:22 AM

1 Attachment(s)
Like this, I have it where I need just need some pointers as how to submit the new data to the correct place

Code:

<if condition="$show['member']">
<td class="vbmenu_control"><a>Member Mood Display:</a>
<form action="profile.php?do=editoptions" method="submit">

<input type="hidden" name="userfield[field5_set]" value="1" />

        <select name="userfield[field5]" id="csel_field5">
                                <option value="0" ></option>
                                <option value="1" >accomplished</option><option value="2" >aggravated</option> ETC ETC...
</select>
<input type="submit" class="button" value="Save" accesskey="s" />
</form>
</if>

thats the code im using so perhaps iv missed something simple out of it

timetunnel 10-28-2005 03:34 PM

Hello.

Before looking into this code deeper, I noticed something:

in the following code,

HTML Code:

<form action="profile.php?do=editoptions" method="submit">
you have method="submit" when it should be either 'post' or 'get'. Granted, I haven't looked into updated HTML changes so if 'submit' is a new option for method, I didn't know...

Guest190829 10-28-2005 03:43 PM

You would have to send that to a php file that will insert or update that field with the drop down value.

MrSDavidson 10-28-2005 06:54 PM

Cheers, anyone be able to give me some pointers as to how to do that in php? unfortunitly its not one of the languages I know.

Another Q, seeing as there is a php file that does this [profile.php] cant I send it directly to it?

MrSDavidson 10-30-2005 08:36 PM

anyone willing to give me Any pointers?


All times are GMT. The time now is 01:37 AM.

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.01920 seconds
  • Memory Usage 1,716KB
  • 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)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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