Advertisement
Guest User

Untitled

a guest
Oct 6th, 2016
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. <?
  2. if($_REQUEST['salva_ed']){
  3. $sqlu="update registration set username='$username', firstname='$fname', lastname='$lname', sex='$gender',
  4. birth_date='$bdate', addressline1='$address1',addressline2='$address2', complemento='$address3', numero='$address4', city='$city', state='$state',
  5. country='$country', postcode='$zipcode', phone='$phone', mobile_no='$mobileno', full_mobileno='$fullmobile',
  6. email='$email', password=MD5('$pass'), cpf='$cpf',rg='$rg' where id='$id'";
  7. $resultu=mysql_query($sqlu);
  8. header("location:message.php?msg=3"); exit;
  9. }
  10.  
  11.  
  12. if($_REQUEST['salva_nv']){
  13. $verifcode = md5($username);
  14. $agora=Date("Y-m-d H:i:s");
  15. $sqlu="insert into registration (username,firstname,lastname,sex,birth_date,addressline1,addressline2,city,state,
  16. country,postcode,phone,mobile_no,full_mobileno,email,password,cpf,rg,register_date,verify_code,
  17. final_bids,account_status,member_status,user_delete_flag,sponser,sms_flag,admin_user_flag) values
  18. ('$username','$fname','$lname','$gender','$bdate','$address1','$address2','$address3','$address4','$city','$state',
  19. '$country','$zipcode','$phone','$mobileno','$fullmobile','$email',MD5('$pass'),'$cpf','$rg','$agora','$verifcode',
  20. 0,0,'0','',0,'0','0')";
  21. //echo $sqlu; exit;
  22. $resultu=mysql_query($sqlu);
  23. header("location:message.php?msg=2"); exit;
  24. }
  25. ?>
  26.  
  27. <tr>
  28. <td class="normal" align="right"><font class="a">*</font>&nbsp;Senha de acesso:&nbsp;</td>
  29. <td><input style="width:60%" type="password" name="pass_word" value="<?=$pass?>"/></td>
  30. </tr>
  31. <tr>
  32. <td class="normal" align="right"><font class="a">*</font>&nbsp;Confirma&ccedil;&atilde;o de senha:&nbsp;</td>
  33. <td><input style="width:60%" type="password" name="cpassword" value="<?=$pass?>"/></td>
  34. </tr>
  35. <input type="submit" value="Atualizar cadastro" name="Editar" class="bttn" /></td>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement