Hi BananaLive,
( Or anyone that can help.)
When I submit the form below ( your example ) to a HTML page , it directs me to a page of smileys located here
http://localhost/forum/misc.php?user=bob
It seems to cut off the
"do=form&fid=1" part but does add the
"user=bob" part"
I'm kinda stuck on that one.
.
<form name="form" action="http://localhost/forum/misc.php?do=form&fid=1" method="get">
Username:
<input type="text" name="user" />
<input type="submit" value="Submit" />
</form>
Another question on this one.
Quote:
Originally Posted by bananalive
How do I get parameter from url of form posted in custom output? (must have parameter)
1. Form Hook: Form Start
PHP Code:
$hiddenfield1 = $vbulletin->input->clean_gpc('g', 'param', TYPE_UINT);
if (empty($hiddenfield1))
{
$errormessage = "Error, this form needs a parameter.";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}
2. Form Hook: Before Submit
PHP Code:
$hiddenfield1 = $vbulletin->input->clean_gpc('p', 'hiddenfield1', TYPE_UINT);
$formoutput = str_replace('{param}', "$hiddenfield1", $formoutput);
3. Use {param} in custom output.
|
Do I need to change anything in these codes to be able to use the form on the top of the page ?
When you say "use {param} in custom output" I really don't know what that means could someone explain that in a little more detail please ? . Sorry for my inexperience I am willing to pay/donate (to you or to your favorite charity), to anyone who can help me out with this.
Thanks,