Allrighty then..
Getting a user confirmation user clicks a botton to confirm..
template where botton is clicked
Code:
<form action="ega.php?do=createNewUser" name="newuser" method="post";">
<input type="hidden" name="Uid" value=$bbuserinfo[userid] />
Confirm : <input type="submit" class="button" value="Create" />
</form>
Then we head to the php code where the request should update a db field
from 0 to 1.
PHP Code:
if ($_REQUEST['do'] == 'createNewUser')
{
$vbulletin->input->clean_array_gpc('p', array(
'Uid' => TYPE_UINT,
));
$Uid =& $db->escape_string($vbulletin->GPC['Uid']);
$db->query_write("UPDATE " . TABLE_PREFIX . "user SET fieldEG1='1' WHERE userid='".$Uid."'");
strange thing as usual, no erros code runs fine.
But somehow i loose the Uid (userid) dureing the process,
and im sure its this VB4 variable register thing, but where would i register a variable that
comes from a template, and are put into the php ?
The article only shows how to take content from php and render them.
but this is userinput.