To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > PHP Help > General Help

General Help Forum for General Help questions pertaining to PHP

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-14-2003, 03:20 AM   #1
mp3mangr
Junior Member
 
Join Date: Nov 2003
Location: Greece/Athens
Posts: 6
Problem with phpfreaks session tutorial

I will used this code

<?php
// start the session
session_start();
header("Cache-control: private"); //IE 6 Fix

echo "<strong>Step 2 - Register Session </strong><br />";

// Get the user's input from the form
___$name = $_POST['name'];

// Register session key with the value
___$_SESSION['name'] = $name;

// Display the sssion information:
?>

Welcome to my website <strong><? echo $_SESSION['name']; ?></strong>!<br />
Let's see what happens on the <a href="page3.php">next page.</a><br /><br />

from phpfreaks tutorials and i take this error Parse error: parse error in /var/www/htdocs/sessions_example/page2.php on line 9

I have used the default configurations in php.ini file
what is the problem? please help...
is something that i must change in the configurations (i used php 4.3.3 with slackware 9.1)
mp3mangr is offline   Reply With Quote
Old 11-14-2003, 03:28 AM   #2
mrhappiness
Senior Member
 
Join Date: Nov 2003
Location: kraut *g*
Posts: 1,378
you see the underscores in your code?
remove them
__________________
The last good thing written in C was Schubert's symphony #9.
mrhappiness is offline   Reply With Quote
Old 11-14-2003, 03:44 AM   #3
mp3mangr
Junior Member
 
Join Date: Nov 2003
Location: Greece/Athens
Posts: 6
oh my god!!! in my php editor the underscores didn't exists... they appeared in copy-paste! thanks a lot.
but it is really strange.
mp3mangr is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 09:42 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.