I am trying to pass a form input through an encryption script into a database.
I cannot seem to pass the "data" info from the form to the script.
Static variables work fine...
<td><label>Data:</label> <input type="password" name="data" value="" size="10">
<?php
$key = "xxxxxx";
$input = data;
$td = mcrypt_module_open('tripledes', '', 'ecb', '');
$iv = "11111111";
mcrypt_generic_init($td, $key, $iv);
$output = mcrypt_generic($td, $input);
mcrypt_generic_deinit($td);
mcrypt_module_close($td);
?>
Thank you for your time...
Cheers,
truman