insert html and php

admin

Administrator
Staff member
hello. i need to stick this into a database:

<p align = "left">
<font color = "white">
<form method = "post" action = "bot.php">
<b>Title</b>:<br>
<input type = "text" size = "50" name = "title" value = <!-- m --><a class="postlink" href="http://www.phpbuilder.com/board/archive/index.php/">http://www.phpbuilder.com/board/archive/index.php/</a><!-- m -->"<? echo "$etitle"; ?>">
<p align = "left">
<b>New Item</b>:<br>
<textarea rows = "10" cols = "70" name = "body"><? echo "$ebody"; ?></textarea>
<p align = "left">
<input type = "hidden" name = "update" value = "1.1">
<input type = "hidden" name = "maxid" value = "<? echo "$max[0]"; ?>">
<p align = "left">
<input type = "submit" value = "update item">
</form>
</font>
</p>

When i try to put it in a variable i have to escape all the quotes with a shash -- that part works fine. It tends to stumble on the php that it contains. Can anyone help?

thank you!
 
Back
Top