The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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> 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.. |
#2
|
||||
|
||||
I'm not sure if this is causing the problem, but you do need to spell method correctly - method="post" (not mothod="post")
|
#3
|
||||
|
||||
roflmao omg.
well i just added the ekstra hidden input type named it DO and value=savedata |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|