Jump to content

Parse Error: Syntax Error, Unexpected ',' In /home/*** On Line 90


BrettHartel

Recommended Posts

Thank you for taking the time to help me.

 

I keep getting the error: Parse error: syntax error, unexpected ',' in /home/*** on line 90

 

What did I do wrong?

 

Here is my set cookie code which starts at line 90:

setcookie( "User_ID", $User_ID, time()+60), "/", "***.com" );
setcookie( "FirstName", $_POST[FirstName], time()+60), "/", "***.com" );
setcookie( "LastName", $_POST[LastName], time()+60), "/", "***.com" );
setcookie( "eMail", $_POST[eMail], time()+60), "/", "***.com" );
setcookie( "Day", $_POST[Day], time()+60), "/", "***.com" );
setcookie( "Month", $_POST[Month], time()+60), "/", "***.com" );
setcookie( "Year", $_POST[Year], time()+60), "/", "***.com" );

 

Sincerely,

 

Brett Hartel

Link to comment
Share on other sites

I added the quote to the array keys but I know know what you mean by an extra ), I am not seeing it. Besides for the quote i cannot see a difference between what you and I wrote. I get the same error message after updating the quote.

 

I now have this:

 

setcookie( "User_ID", $User_ID, time()+60), "/", "***.com" );
setcookie( "FirstName", $_POST['FirstName'], time()+60), "/", "***.com" );
setcookie( "LastName", $_POST['LastName'], time()+60), "/", "***.com" );
setcookie( "eMail", $_POST['eMail'], time()+60), "/", "***.com" );
setcookie( "Day", $_POST['Day'], time()+60), "/", "***.com" );
setcookie( "Month", $_POST['Month'], time()+60), "/", "***.com" );
setcookie( "Year", $_POST['Year'], time()+60), "/", "***.com" );

 

Did you mean:

setcookie( "FirstName", $_POST['FirstName'], time()+60, "/", "***.com" );

? subtract the ) after the 60.

Link to comment
Share on other sites

Oh, i took the ) after the 60 away and it sent. Now I get this error and Im not sure how to fix it before the header since i don't include a header in my .php file.

 

Warning: Cannot modify header information - headers already sent by (output started at /home/***:5) in /home/*** on line 90

 

Warning: Cannot modify header information - headers already sent by (output started at /home/***:5) in /home/*** on line 91

 

Warning: Cannot modify header information - headers already sent by (output started at /home/***:5) in /home/*** on line 92

 

Warning: Cannot modify header information - headers already sent by (output started at /home/***:5) in /home/*** on line 93

 

Warning: Cannot modify header information - headers already sent by (output started at /home/***:5) in /home/*** on line 94

 

Warning: Cannot modify header information - headers already sent by (output started at /home/***:5) in /home/*** on line 95

 

Warning: Cannot modify header information - headers already sent by (output started at /home/***:5) in /home/*** on line 96

 

Warning: Cannot modify header information - headers already sent by (output started at /home/***:5) in /home/*** on line 97

Array ( [s_pers] => s_lv=1354518011413|1449126011413; s_lv_s=First%20Visit|1354519811413; )

Edited by BrettHartel
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.