| | Ok, so I'm using the include() function on my website. Problem is I'm trying to include a search engine form into the layout which is stored in a variable, except the form has an if statement in it and I can't seem to get it working. Here's the code I'm trying to include... CODE <form method=POST action=search.php> <p>Search:<br> <input type=text name=search size=20 class=textbox size=15 value= <?if (isset($_POST['search'])){ echo $_POST['search']; } ?> ><input type=submit value=Submit> </form> Just wondering if it is possible for me to put this form with the if statement into a variable, or if there's another way that I could go about doing this. Thanks. |

