Welcome to Geeklog, Anonymous Friday, November 29 2024 @ 12:33 pm EST
Geeklog Forums
Block Prase Error
Del
Anonymous
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?
12
18
Quote
Del
Anonymous
that turned out wrong
here is the code I am using:
$email = $_REQUEST['email'] ;
$message = $_REQUEST['blahblahblahblah'] ;
mail( "myemail@yahoo.com", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://www.example.com/thankyou.html" );
?>
here is the code I am using:
Text Formatted Code
<?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" );
?>
15
16
Quote
Del
Anonymous
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
Text Formatted Code
Parse error: parse error, unexpected '<' in /my/path/public_html/staticpages/index.php(59) : eval()'d code on line 1
13
15
Quote
Del
Anonymous
ok, I removed the
any ideas now Dirk?
any ideas now Dirk?
9
16
Quote
Del
Anonymous
that was supposed to read ..
"I removed the PHP tags" and it still doesnt work
any ideas now Dirk?
"I removed the PHP tags" and it still doesnt work
any ideas now Dirk?
12
13
Quote
Del
Anonymous
the exact same error:
Text Formatted Code
Parse error: parse error, unexpected '<' in /my/path/public_html/staticpages/index.php(59) : eval()'d code on line 1
12
14
Quote
Nygrah
Anonymous
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!
16
12
Quote
Nygrah
Anonymous
Forgot to add that I am simply trying to use the php
include_once(''); command.
include_once(''); command.
12
14
Quote
Nygrah
Anonymous
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.
10
11
Quote
Nygrah
Anonymous
No one else is having this problem?
13
8
Quote
Status: offline
DTrumbower
Forum User
Moderator
Registered: 01/08/03
Posts: 507
Example code is always easier to help with, then guessing.
11
10
Quote
Nygrah
Anonymous
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.
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.
12
13
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Nygrah: include_once('http://www.xxx.com/staticpages/index.php/table');
Are you sure this is really what you want to do? Besides, that will only work if url_fopen is enabled.
bye, Dirk
12
13
Quote
All times are EST. The time is now 12:33 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content