Jump to content

Archived

This topic is now archived and is closed to further replies.

scottybwoy

Sending php data to a html template

Recommended Posts

I'd like to have a welcome message like the one phpfreaks uses above and also the date to the right, would i have to generate the html dynamically or can I just use some sort of a placeholder in the html to grab it?

Hope that makes sense, cheers

Share this post


Link to post
Share on other sites
The "Hello" message is an easy PHP echo of the logged in person's username.  The date generated is more than likely javascript.  The hello message would require a registration/user management system of sorts and a date javascript function is as easy as typing it into google and using the one you like that comes up.

Share this post


Link to post
Share on other sites
Cheers, I already have my login script and a session variable is stored and I know how to use echo, my problem is I have my header template included but I want that data from my php to go into a welcome message in my template.  Or is there no way to do that, sort of like post but the other way round.  Cheers I shud have thaught about client side java for the date.  Any more solutions to the prior question?

Share this post


Link to post
Share on other sites

×

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.