Vaupell
01-13-2010, 09:58 AM
working with some user input via a form..
eksample
template :
<form action="my.php?do=savedata" name="newdata" mothod="post">
<input type="hidden" name="uid" value=$bbuserinfo />
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
[U]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..
eksample
template :
<form action="my.php?do=savedata" name="newdata" mothod="post">
<input type="hidden" name="uid" value=$bbuserinfo />
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
[U]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..