The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
cookie
Posted by: cookie | September 23, 2010 @ 9:49am
PHP Code
[
Download
]
<?php function upcookie() { setcookie("usuario","$us",time()*60*60*24); setcookie("senha","$se",time()*60*60*24); } include "include.php"; $uss=$_POST['us']; $sevelha=$_POST['sevelha']; $se1=$_POST['se1']; $se2=$_POST['se2']; $mavelha=$_POST['mavelha']; $maa1=$_POST['ma1']; $maa2=$_POST['ma2']; if ($sevelha == $se && $se1 == $se2){ mysql_query("update bd.tab set usuario='$uss' where usuario='$us'",$con); mysql_query("update bd.tab set senha='$se1' where senha='$se'",$con); upcookie(); } else { echo "Voc� digitou senhas diferentes, ou ela n�o bate com o banco de dados!"; } if ($mavelha == $ma && $maa1 == $maa2){ mysql_query("update bd.tab set email='$maa1' where email='$ma'",$con); } else { echo "Voc� digitou e-mails diferentes, ou ela n�o bate com o banco de dados!"; } ?>
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.44 / 8
48 Votes
http://codebin.yi.org/854
page generated in 0.00 seconds