-------------
Question 1:
First of all, I am assigning html to variables. Currently, I have done this:
Code: Select all
<?php
$question1 = include('question1.php');
//where question1.php looks like...
$one = '
<p>A question?</p>
<p><input type="text" name="name" size="10"></p>
';
return($one);
?>-------------
Question 2:
In PHP, when you use include(), does it always have to be a PHP file, or can you include an HTML file?
-------------
Question 3:
When you assign HTML to variables similiar to this echo:
Code: Select all
<?php
echo'
<html><body>
<form method="post" action="hello_name.php">
Enter Your Name
<input type="text" name="UserName"></input><br>
<input type="submit" name="submit" value="click"></input>
</form>
</body></html>
';
?>That is all for now. I am sure it will take someone who knows PHP all of 1 minute to answer these questions, but I can't seem to figure it out through the manual and other forums...
THANKS!