hi
I know already how to upload files in PHP.
What I need to do is after uploading an image, to add it in a textareae on the same page.
If you didn't get me, this image should help:
Thank you!
hi
I know already how to upload files in PHP.
What I need to do is after uploading an image, to add it in a textareae on the same page.
If you didn't get me, this image should help:
Thank you!
Use an empty/absent ACTION attribute in your FORM and, on the same page,<textarea><?php echo file_get_contents($path_to_upload); ?></textarea>(in an 'if' to determine if anything has been uploaded first).
(BTW, that image URL times out for me, and I'm on DSL.)
EDIT: The image finally loaded, and I don't think that's possible with a traditional textarea; you'll need to use an IFRAME or scrolling DIV for that. And if the user must type into the same thing, you're wanting a WYSIWYG script; see http://www.dynamicdrive.com/dynamici...iwyg/index.htm.
Last edited by Jesdisciple; 07-15-2008 at 08:32 PM.
ok, thank you
Um, haven't tried it before. What about simply to give background to textarea with that image?
It's a nice idea but I don't want it as a background
still thanks
You can't place in image in a form feild, except as a background. You could try positioning it with CSS to make it look like it's in the textarea, I suppose.
--Jas
function GreatMinds(){ return "Think Like Jas"; }
Bookmarks