vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   problem submitting a <form> action contents (https://vborg.vbsupport.ru/showthread.php?t=232971)

Vaupell 01-13-2010 09:58 AM

problem submitting a <form> action contents
 
working with some user input via a form..

eksample

template :
Code:

<form action="my.php?do=savedata" name="newdata" mothod="post">
<input type="hidden" name="uid" value=$bbuserinfo[userid] />

Insert your data here :  <br />
<textarea class="bginput" name="data" cols="70" rows="10"></textarea> <br />
<input type="submit" class="button" value="Submit" /><br />
</form>

now i was exspecting it to produce the link

my.php?do=savedata&uid=1&data=something
i need whats marked in red.

Howewer it instead actually makes the link
my.php?uid=1&data=something

so the php file have no directs from template, and will just head to the default set
or set if request is empty..

this used to work just fine in vb3.x but it dosent anymore,
and that puzzle's me, cause its normal html.

How do i include the instruction in the link now ?

EDIT :

i could ofcourse add a "hidden" input box at the top of the form
<input type="hidden" name="do" value=savedata" /> this will fix the problem,
but that just feels wrong..

Lynne 01-13-2010 02:32 PM

I'm not sure if this is causing the problem, but you do need to spell method correctly - method="post" (not mothod="post")

Vaupell 01-13-2010 07:34 PM

roflmao :D omg. :p
well i just added the ekstra hidden input type named it DO and value=savedata


All times are GMT. The time now is 09:27 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.01104 seconds
  • Memory Usage 1,711KB
  • 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)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