Help.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ScottCFR
Forum Commoner
Posts: 33
Joined: Sat Jun 19, 2010 7:36 pm

Help.

Post by ScottCFR »

I am creating blogging software, so I can be original. I want the user and the date posted at the bottom but all I get is "Posted by: $user on $date". Can someone help me?

Code: Select all

<input name="info" type="hidden" value="Posted by: <?php echo $user ?> on <?php echo $date ?>" />
User avatar
angelicodin
Forum Commoner
Posts: 81
Joined: Fri Nov 13, 2009 3:17 am
Location: Oregon, USA

Re: Help.

Post by angelicodin »

~giggle~ you are forgetting a ";" to end the line of php code.
ScottCFR
Forum Commoner
Posts: 33
Joined: Sat Jun 19, 2010 7:36 pm

Re: Help.

Post by ScottCFR »

OMG, I feel so stupid. I've looked at it for hours.

Thanks a lot.
Post Reply