Posted on: 05/27/05 10:14am
By: Anonymous (Del)
I have turned on PHP execute for my static pages and I am trying to code some PHP scripts... but I keepgetting a parse error.
Here is the code I am using:
$email = $_REQUEST['email'] ;
$message = $_REQUEST['blahblah'] ;
mail( "myemail@yahoo.com", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://www.example.com/thankyou.html" );
?>
Name: Email:
Here is the parse error:
Parse error: parse error, unexpected '
wtf???? why doesnt it work??? where is the parse error?
Block Prase Error
Posted on: 05/27/05 10:16am
By: Anonymous (Del)
that turned out wrong
here is the code I am using:
<?php
$email = $_REQUEST['email'] ;
$message = $_REQUEST['blahblahblahblah'] ;
mail( "myemail@yahoo.com", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://www.example.com/thankyou.html" );
?>
Block Prase Error
Posted on: 05/27/05 10:17am
By: Anonymous (Del)
why do I get this parse error with that code? it looks good to me!
Parse error: parse error, unexpected '<' in /my/path/public_html/staticpages/index.php(59) : eval()'d code on line 1
Block Prase Error
Posted on: 05/27/05 01:56pm
By: Dirk
As mentioned in the
documentation[*1] , you shouldn't enclose your code in PHP tags ...
bye, Dirk
Block Prase Error
Posted on: 05/27/05 02:35pm
By: Anonymous (Del)
ok, I removed the
any ideas now Dirk?
Block Prase Error
Posted on: 05/27/05 02:36pm
By: Anonymous (Del)
that was supposed to read ..
"I removed the PHP tags" and it still doesnt work
any ideas now Dirk?
Block Prase Error
Posted on: 05/27/05 02:46pm
By: Dirk
Sorry, but my crystal ball seems to be out of service right now ...
In other words: What error do you get now?
bye, Dirk
Block Prase Error
Posted on: 05/27/05 03:10pm
By: Anonymous (Del)
the exact same error:
Parse error: parse error, unexpected '<' in /my/path/public_html/staticpages/index.php(59) : eval()'d code on line 1
Block Prase Error
Posted on: 05/27/05 03:17pm
By: Dirk
[QUOTE BY= Del] the exact same error[/QUOTE]
That's impossible if you really removed the PHP tags, since there wouldn't be any '<' sign left to complain about ...
bye, Dirk
Block Prase Error
Posted on: 07/17/05 01:07am
By: Anonymous (Nygrah)
I am having exactly the same problems with my static pages. I have not been about to include PHP and I followed all the documentation. Please help!
Block Prase Error
Posted on: 07/17/05 01:09am
By: Anonymous (Nygrah)
Forgot to add that I am simply trying to use the php
include_once(''); command.
Block Prase Error
Posted on: 07/18/05 12:46am
By: Anonymous (Nygrah)
Is there any thing I should put with the include command in order to get it to work? I really need to get the php to work in the static pages.
Block Prase Error
Posted on: 07/19/05 02:49am
By: Anonymous (Nygrah)
No one else is having this problem?
Block Prase Error
Posted on: 07/19/05 10:54am
By: DTrumbower
Example code is always easier to help with, then guessing.
Block Prase Error
Posted on: 07/20/05 12:46am
By: Anonymous (Nygrah)
I think I already explained that I simply wanted to do a php include. Only in this instance I wanted to include another staticpage into a staticpage.
I used include_once('http://www.xxx.com/staticpages/index.php/table'); It doesn't appear within in the staticpage. I also tried to include it as plain html.
ie.
Block Prase Error
Posted on: 07/20/05 04:02pm
By: Dirk
[QUOTE BY= Nygrah] include_once('http://www.xxx.com/staticpages/index.php/table');[/QUOTE]
Are you sure this is really what you want to do? Besides, that will only work if url_fopen is enabled.
bye, Dirk