Hello everyone, I have a question about this PHP Script that I have.
The script is involved with a guestbook. I have a textbox that is named image.
When you submit the form, the text goes into a database, and the post is viewed on the guestbook homepage. This is a typical, normal guestbook.
What I want to do is allow the user to add images to it with <img src="...">
What I tried doing was this:
<b>IMAGE:</b>
<img src="<?php echo $row['image']; ?>"> </div>
['image'] is the name of the textbox where you put the image location
I thought that this would be like this:
-Say I entered an image at www.example.com/image.png
-The script would translate this as:
<img src="www.example.com/image.png">
I tried the script out, but it doesn't work.
Does anyone have any ideas to what could be wrong?
Thanks,
Jelvis
The script is involved with a guestbook. I have a textbox that is named image.
When you submit the form, the text goes into a database, and the post is viewed on the guestbook homepage. This is a typical, normal guestbook.
What I want to do is allow the user to add images to it with <img src="...">
What I tried doing was this:
<b>IMAGE:</b>
<img src="<?php echo $row['image']; ?>"> </div>
['image'] is the name of the textbox where you put the image location
I thought that this would be like this:
-Say I entered an image at www.example.com/image.png
-The script would translate this as:
<img src="www.example.com/image.png">
I tried the script out, but it doesn't work.
Does anyone have any ideas to what could be wrong?
Thanks,
Jelvis