Are their any guides on how I can incorperate HTML/CSS in PHP?

intikad i

New member
yes you can...

just create php file and include html tags in it will work..

if you want to echo inside php

for example

output input

1. echo "<input type=\"text\" name=\"username\">";

or

2. echo '<input type="text" name="username">';

The difference betwen 1. and 2. is for 1. i used (") if i use (") i have to put (\) before every (") for html tags so it works other wise it wont work...

why you would use 1. because you can just write in a variable and it will show.. The 2. is different you dont have to put (\) after every (') but when you want to show a variable you have to use like this.

echo '<input type="text" name="username" value="'. $value .'">'
 
Back
Top