Does anyone have any experience with this problem or know of a tutorial that deals with a similar issue?
Javascript:
Code: Select all
function writeImgTag1L(code)
{
var cache = document.thisform.textbox.value;
this.code = code;
document.thisform.textbox.value = cache + ("<div style='float:left; width: px; margin:0px; padding:0px 0px 0px 0px; color:gray; text-size:9px;'><div style='border-style:solid; width: px; border-color:rgb(129,86,24); border-width:1px;'><img src='<?php echo '<?php echo $rs_img1; ?>'; ?>'></div> <!--Caption--> </div>");
document.thisform.textbox.focus();
}Code: Select all
<img onClick="writeImgTag1L('smile1L')" src="float_left.gif" border=0>Code: Select all
<form name= "thisform" action="http://site/upload.php" method="POST" enctype="multipart/form-data">
<p>Upload <br><br>
<input type="hidden" name="MAX_FILE_SIZE" value="2097152" />
<b>Image1</b> <input name="imgfile1" type="file"/> <img onClick="writeImgTag1L('smile1L')" src="float_left.gif" border=0> <br><br>
<b>Text</b><br> <textarea cols="50" rows="15" name="textbox"></textarea><br><br>
<input type="submit" value="Upload" /><br>Code: Select all
$text = $_POST['textbox'];
$textfile = "./dir/dir/text" . $date . ".txt";
$open = fopen("$textfile", "a");
fwrite($open, "\n$text");
fclose($open);