wie wäre es möglich in ein kontaktformular die visuelle confirmation des boards einzubauen ?
user würde code abtippen, vergleich fände nach dem klick auf abschicken im hintergrund statt. wäre der code ok, würde es weitergeschickt werden, wäre es nicht ok, nicht.
benachrichtigung des users nur mit dem üblichen zb danke, wenn es wirklich abgeschickt wurde.
ich habe ein kontaktformular von hier
bzgl der visuellen bestätigung sah ich mir die profile.php an. mein php-laien-hirn dachte, daß 2 bereiche evtl damit zu tun haben könnten.
bereich 1 (hat aber glaub ich doch nichts damit zu tun) :
Code: Alles auswählen
// Page specific functions
//
function gen_rand_string($hash)
{
$chars = array( 'a', 'A', 'b', 'B', 'c', 'C', 'd', 'D', 'e', 'E', 'f', 'F', 'g', 'G', 'h', 'H', 'i', 'I', 'j', 'J', 'k', 'K', 'l', 'L', 'm', 'M', 'n', 'N', 'o', 'O', 'p', 'P', 'q', 'Q', 'r', 'R', 's', 'S', 't', 'T', 'u', 'U', 'v', 'V', 'w', 'W', 'x', 'X', 'y', 'Y', 'z', 'Z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0');
$max_chars = count($chars) - 1;
srand( (double) microtime()*1000000);
$rand_str = '';
for($i = 0; $i < 8; $i++)
{
$rand_str = ( $i == 0 ) ? $chars[rand(0, $max_chars)] : $rand_str . $chars[rand(0, $max_chars)];
}
return ( $hash ) ? md5($rand_str) : $rand_str;
}
//
// End page specific functions
Code: Alles auswählen
// Visual Confirmation
if ( $userdata['session_logged_in'] )
{
exit;
}
include($phpbb_root_path . 'includes/usercp_confirm.'.$phpEx);
exit;
}
else if ( $mode == 'sendpassword' )
{
include($phpbb_root_path . 'includes/usercp_sendpasswd.'.$phpEx);
exit;
}
else if ( $mode == 'activate' )
{
include($phpbb_root_path . 'includes/usercp_activate.'.$phpEx);
exit;
}
else if ( $mode == 'email' )
{
include($phpbb_root_path . 'includes/usercp_email.'.$phpEx);
exit;
}
}
redirect(append_sid("index.$phpEx", true));
naja, just mal so angedacht… - und nun mal lieber auf expertenmeinungen warte g
danke + viele grüße, yks