Problema registrazione

  • Creatore Discussione Creatore Discussione mazza93
  • Data di inizio Data di inizio

mazza93

Nuovo Utente
22 Set 2012
1
0
0
Ciao a tutti sono nuovo di questo forum ma spero che mi saprete aiutare a risolvere il mio problema con le registrazioni. Il codice colpevole è il seguente :

PHP:
<?php 
if($name && $prename && $password && $email && $url) 
{ 
$sid=mt_srand((double)microtime()*1000000); 
$sid=md5(str_replace('.', '', getenv('REMOTE_ADDR') + mt_rand(100000, 999999))); 
require('prepend.inc.php'); 
if(account_add($name, $prename, $password, $email, $url,  $points_register, $sid, $referer)) 
{ 
mail($email, $email_welcome_title, $email_welcome, $email_header); 
mail($email_notifynewmember, $email_notifynewmember_title, $email_notifynewmember_msg, $email_header); 
header("Location: $url_register_succesfull"); 
exit; 
} 
} 
?> 
<?php 
require('prepend.inc.php'); 
?> 

<? 
require("templates/main-header.txt"); 
?> 


<br><font size="3"><?php 
if($name && $prename && $email && $url && $password) 
echo "Account with e-mail $email already exists!";?> 
<form method="post" action="register.php"> 
<?php if($referer){ ?> 
<input type="hidden" name="referer" value="<?php echo $referer ?>"> 
<?php } ?> 
<br><br> 


<b><label for="text">Name</label></b> 
<input type="text" name="name" value="<?php echo stripslashes($name); ?>"> 
<br> 


<b><label for="First name">First name</label></b> 
<input type="text" name="prename" value="<?php echo stripslashes($prename); ?>"> 
<br> 


<b><label type="E-mail">E-mail:</labe></b> 
<input type="email" name="email" value="<?php echo stripslashes($email); ?>"> 
<br> 

<b><label for="Website-URL">Website-URL</label></b> 
<input type="text" name="url" value="http://<?php echo stripslashes($url); ?>"> 
<br> 

<b><label for="Password">Password</label></b> 
<input type="password" name="password" value="<?php echo stripslashes($password); ?>"> 
<input type="submit" value="Submit"> 
</form> 

<? 
include("templates/main-footer.txt"); 
?>

Sembra che proprio non invii i dati. Il link alla pagina è http://scambiodivisite.altervista.org/register.php
Almeno potrete capire meglio il problema! grazie anticipatamente.
 
il link che hai postato non è funzionante

register.php è il codice che hai postato?
se si non valorizzi nessuna variabile
dovresti avere qualcosa del tipo
PHP:
$name = $_POST['name'];
 

Discussioni simili