PDA

View Full Version : form handling


sabret00the
29 Apr 2004, 08:34
i thought i'd make my form a little more secure with


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


at the top of the handler, however the else of both query's shows you an error message

and since i'm considentantly getting this error message everytime i try and do something through the form, i'm wondering what i'm doing wrong?

Xenon
29 Apr 2004, 13:23
if you use single quotes, then variables are not parsed, so you should use

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

sabret00the
29 Apr 2004, 13:39
thanks xenon, however still can't get it to work, could you please take a look at this and tell me i'm just coding this badly or not


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Xenon
29 Apr 2004, 13:53
well, you should start to use the vb3 coding rules, as it would make the code better readable.

but apart from that, i don't see, whats wrong right now..

btw, the second ($projectid = intval($_POST['projectid']);) is useless ;)