TheConeHead
Programmer
I am submitting a query via a form:
when I go to the new page from this form being submitted, the query's turn into:
For some reason it is putting the \ in front of the ' - do I need to strip these out or can I get it passed correctly?
![[conehead] [conehead] [conehead]](/data/assets/smilies/conehead.gif)
Code:
<form name="printf" method="post" action="page.php" target="_blank">
<input type="hidden" name="st" value="SELECT id, fname, field, AES_DECRYPT(lname,'key') as slname, AES_DECRYPT(uname,'key') as suname, AES_DECRYPT(pword,'key') as spword FROM table where AES_DECRYPT(uname,'key') = 'name' AND AES_DECRYPT(pword,'key') = 'pword'">
<input type="hidden" name="tr" value="SELECT * FROM table where id = '9'">
</form>
when I go to the new page from this form being submitted, the query's turn into:
Code:
SELECT id, fname, field, AES_DECRYPT(lname,\'key\') as slname, AES_DECRYPT(uname,\'key\') as suname, AES_DECRYPT(pword,\'key\') as spword FROM table where AES_DECRYPT(uname,\'key\') = \'name\' AND AES_DECRYPT(pword,\'key\') = \'pword\'
and
SELECT * FROM table where id = \'9\'
For some reason it is putting the \ in front of the ' - do I need to strip these out or can I get it passed correctly?
![[conehead] [conehead] [conehead]](/data/assets/smilies/conehead.gif)