Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #9749

Re: php contact form with AES encrypt and sessions for a multipage contact form - Driving me mad what ma i doing wrong

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: php contact form with AES encrypt and sessions for a multipage contact form - Driving me mad what ma i doing wrong
Date 2013-06-03 12:23 -0400
Organization A noiseless patient Spider
Message-ID <koifle$8e4$1@dont-email.me> (permalink)
References <0e022c39-a8da-4b79-96ad-cbbb67e8e760@googlegroups.com> <529025b3-7cd5-469e-863a-598b823ba278@googlegroups.com>

Show all headers | View raw


On 6/3/2013 9:41 AM, Jason Demitri wrote:
> I believe this is more or less how i had it before i split the form up the . . it would action this script on submit
>
>
> <?php
>
>
> require('config.php');
>
> //table name
>
> $tbl_name=temp_members_db;
>
> //Random Confirm Code
>
> $confirm_code=md5(uniqid(rand()));
>
> //AES Encrypt Salt
> if(!define('SALT'))
> define('SALT','897sdn9j98u98jk');
>
> //details collected from form
> $title=$_POST['title'];
> $fname=$_POST['fname'];
> $lname=$_POST['lname'];
> $bday=$_POST['bday'];
> $email=$_POST['email'];
> $emailr=$_POST['emailr'];
> $mobphone=$_POST['mobphone'];
> $hmephone=$_POST['hmephone'];
> $usrname=$__POST['usrname'];
> $pswd=$_POST['pswd'];
> $pswd2=$_POST['pswd2'];
> $rdname=$_POST['rdname'];
> $postcode=$_POST['postcode'];
>
>
> //Insert data into database
>
> $sql="INSERT INTO $tbl_name(confirm_code, title, fname, lname, bday, email, mobphone, hmephone, usrname, pswd, rdname, postcode,)
>
> VALUES('$confirm_code', '$title', '$fname', '$lname','$bday', AES_ENCRYPT('$email','".SALT."'), '$mobphone', '$hmephone', '$usrname', AES_ENCRYPT('$pswd','".SALT."'), '$rdname', AES_ENCRYPT('$postcode','".SALT."'))
> ";
> 	
> // if suceesfully inserted data into database, send confirmation link to email
> if($result){
> 	echo "Put Successfull";
> }
>
> else {
> echo "there has been an error";
> }
> ?>
> ?>
>

Did you even READ the responses?


-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

php contact form with AES encrypt and sessions for a multipage contact form - Driving me mad what ma i doing wrong Jason Demitri <jasonjdemitri@gmail.com> - 2013-06-03 04:12 -0700
  Re: php contact form with AES encrypt and sessions for a multipage contact form - Driving me mad what ma i doing wrong Jerry Stuckle <jstucklex@attglobal.net> - 2013-06-03 07:31 -0400
  Re: php contact form with AES encrypt and sessions for a multipage contact form - Driving me mad what ma i doing wrong Jeff North <jnorthau@yahoo.com.au> - 2013-06-03 22:00 +1000
  Re: php contact form with AES encrypt and sessions for a multipage contact form - Driving me mad what ma i doing wrong Jason Demitri <jasonjdemitri@gmail.com> - 2013-06-03 06:38 -0700
    Re: php contact form with AES encrypt and sessions for a multipage contact form - Driving me mad what ma i doing wrong Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-06-03 15:46 +0200
      Re: php contact form with AES encrypt and sessions for a multipage contact form - Driving me mad what ma i doing wrong Jason Demitri <jasonjdemitri@gmail.com> - 2013-06-03 07:14 -0700
      Re: php contact form with AES encrypt and sessions for a multipage contact form - Driving me mad what ma i doing wrong Jason Demitri <jasonjdemitri@gmail.com> - 2013-06-03 07:14 -0700
  Re: php contact form with AES encrypt and sessions for a multipage contact form - Driving me mad what ma i doing wrong Jason Demitri <jasonjdemitri@gmail.com> - 2013-06-03 06:41 -0700
    Re: php contact form with AES encrypt and sessions for a multipage contact form - Driving me mad what ma i doing wrong Jerry Stuckle <jstucklex@attglobal.net> - 2013-06-03 12:23 -0400

csiph-web