Thanks for all the previous help.

I have this in the php code:

$injectForm = "";

 - - -etc.- - -

$injectForm = "<form action=\"content.php\" method=\"GET\" id=\"sub-search\">
<input id=\"search\" name=\"keywords\" type=\"text\" placeholder=\"Type here\">
<input type=\"submit\" value=\"Search\" />
</form>";

I want to echo the Form onto the html page. I have tried this unsuccessfully:

<!DOCTYPE html>
<html>
<body>

----etc----

<?php
echo "injectForm";
?>

---etc---
</body>
</html>

any guidance is appreciated

    Write a Reply...