hello. well, my entire site is database driven through my admin where i can edit,create and delete stuff from a textarea and other form elements.
i tried putting a form into it and it worked fine, until i got around to editing.... my submit button code gets lost and actually is displayed on the admin-edit page itself...
the only solution that i have found is, to make a new php page, type the <FORM> header, select from the database the form itself, and type in the submit button.... any ideas on how to make a form-maker that i can edit using mysql database?when you put the form into a textbox you have to convert all the html entities to ascii, that means you have to change < and make it <
this is the work of htmlspecialchars(). so jsut use that function and it changes all your html chracters to the proper ascii code.
make sense?i did that manually when i was making tutorials of HTML code that i wanted to displayed and when i got around to editing it, it changed to "<" and i had to manually change it back to <
would this work:?
<?
function moo() {
if content=="";
htmlspecialchars()
else
echo "Done!";
?>no that won'yt work. why can't you just do this
<textarea row="2" cols="2">".htmlspecialchars($content)."</textarea><textarea cols=50 rows=10 name="content" ><? echo $row['content']; ?></textarea> is what i have now, so it'll be???????????????????
i tried putting a form into it and it worked fine, until i got around to editing.... my submit button code gets lost and actually is displayed on the admin-edit page itself...
the only solution that i have found is, to make a new php page, type the <FORM> header, select from the database the form itself, and type in the submit button.... any ideas on how to make a form-maker that i can edit using mysql database?when you put the form into a textbox you have to convert all the html entities to ascii, that means you have to change < and make it <
this is the work of htmlspecialchars(). so jsut use that function and it changes all your html chracters to the proper ascii code.
make sense?i did that manually when i was making tutorials of HTML code that i wanted to displayed and when i got around to editing it, it changed to "<" and i had to manually change it back to <
would this work:?
<?
function moo() {
if content=="";
htmlspecialchars()
else
echo "Done!";
?>no that won'yt work. why can't you just do this
<textarea row="2" cols="2">".htmlspecialchars($content)."</textarea><textarea cols=50 rows=10 name="content" ><? echo $row['content']; ?></textarea> is what i have now, so it'll be???????????????????