Jump to content

PHP/HTML Problem

Go to solution Solved by minibois,

 

im trying to make a wlcome page of a website that links to a few other pages and its not working o dont know what is wrong here

If you want to display HTML stuff in PHP you need to add 'echo' to the beginning of the sentence and the text must be inbetween quotation marks.

Exchange the line after the one where you open PHP with this:

echo "<a href ='./Login.php'>Login</a>"

I don't think you need to add ; at the end, but you might have to do that

 

EDIT: Shouldn't the title be in the <head> ?

im trying to make a wlcome page of a website that links to a few other pages and its not working o dont know what is wrong here

 html><title>Welcome </title><body><center><b><font size="36">Welcome</center></b></font><br><br><?php<a href ='./Login.php'>Login</a> ?></body></html>
Link to comment
https://linustechtips.com/topic/318388-phphtml-problem/
Share on other sites

Link to post
Share on other sites

 

im trying to make a wlcome page of a website that links to a few other pages and its not working o dont know what is wrong here

If you want to display HTML stuff in PHP you need to add 'echo' to the beginning of the sentence and the text must be inbetween quotation marks.

Exchange the line after the one where you open PHP with this:

echo "<a href ='./Login.php'>Login</a>"

I don't think you need to add ; at the end, but you might have to do that

 

EDIT: Shouldn't the title be in the <head> ?

"We're all in this together, might as well be friends" Tom, Toonami.

 

mini eLiXiVy: my open source 65% mechanical PCB, a build log, PCB anatomy and discussing open source licenses: https://linustechtips.com/topic/1366493-elixivy-a-65-mechanical-keyboard-build-log-pcb-anatomy-and-how-i-open-sourced-this-project/

 

mini_cardboard: a 4% keyboard build log and how keyboards workhttps://linustechtips.com/topic/1328547-mini_cardboard-a-4-keyboard-build-log-and-how-keyboards-work/

Link to comment
https://linustechtips.com/topic/318388-phphtml-problem/#findComment-4327752
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×