Quote:
Originally Posted by hobbybox
That was the problem - thank you...
As for the form checking the members name im not great with hooks and queries. Can you elaborate more on how to check for a real member username before the form is submitted.
|
Form hook before submit
PHP Code:
if ($q[8])
{
$user = $db->query_first_slave("SELECT userid FROM " . TABLE_PREFIX . "user WHERE username = '" . $db->escape_string($q[8]) . "'");
if (!$user)
{
$complete = false;
$inputerror[8] = "Invalid User";
$iqs[] = '8';
$incompleteqs[] = $qn[8];
}
}