|
Web design and Programming Discuss website creation and other programming topics. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||
|
Parse Me!
Anyone know what I am doing wrong I keep getting a parse error:
if (unset($_POST['UserName'])) is that wrong? Is there a max amount of && you can add so I can put it like this: if (unset($_POST['UserName']) && unset($_POST['PassWord']) && unset($_SESSION['db_is_logged_in']))
__________________
|
#2
|
||
|
what is the parse error your getting?
IcI |
#3
|
||
|
why are you using IF to unset?
unset($_POST['UserName'],$_POST['PassWord']); I don't think you can unset($_SESSION), just reset the value in session. $_SESSION['db_is_logged_in']=false;
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq |
#4
|
||
|
Ok,
Has anyone had trouble using Mcrypt in EasyPHP? I cannot seem to get it to work even when I edited the PHP.ini file so that it is enabled!
__________________
|
#5
|
||
|
Error you get? If you get an error that is.
|
#6
|
||
|
It is a notice error. It is saying that my index is undefined. They are variables that are passed through the URL. I can't define them or it will mess my script up. I even made it so it was like $myvariable=$_REQUEST[myvariable];
it still gave me the undefined thing. Encryption works fine on the new version.
__________________
|
#7
|
||
|
are you trying to see if the variable is empty?
Try using if (!$_POST["UserName"]) IcI |
#8
|
||
|
Yeah but I got that fixed. Instead I just set it as Else. The login worked fine with the new version of easyphp but my tutorial script went to **** when I got it. I am getting notices all over for undefined variables.
__________________
|
#9
|
||
|
lol, i think you have error reporting to all buddy.
|
#10
|
||
|
Yeah, but I shut the notice part off and my script stopped working.
Might was well fix all the warnings to the point where it works
__________________
|
#11
|
||
|
well php will give you errors that aren't necessarily errors, just errors because the script didn't have the right conditions etc...
|
#12
|
||
|
Got it working now but it is giving me an error when I log in.
__________________
|
#13
|
||
|
This won't set the cookies for a long period of time, just while the browser is open. Know what is wrong?
PHP Code:
__________________
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Parse Error | JonM | Web design and Programming | 4 | 08-06-2004 10:32 PM |
PARSE ERROR!!!! help plz | BeBop | Web design and Programming | 4 | 04-05-2003 11:28 AM |