Gossamer Forum
Home : Products : DBMan : Customization :

Image Tags in Modify Record

Quote Reply
Image Tags in Modify Record
I have been playing around with DBMan and would like to know if it is possible to have HTML with "" in the database as a field?

I tried it, and when I try to 'modify' a record -- the html tag screws up the input text tag for the modification form.

It has something to do with the "" in the value attribute. Is there any way to allow "" in the value attribute?


Here is the code I got back from the browser:
<TR><TD ALIGN="Right" VALIGN="TOP">
<Font face="Verdana, Arial, Helvetica" Size=2 Color=#003399>Html Image Tag:</FONT></TD>

<TD VALIGN="TOP"> <INPUT TYPE="TEXT" NAME="Html Image Tag" VALUE="<IMG SRC = "http://photo.com/images/63237028.JPG" >" SIZE="30" MAXLENGTH="50"></TD></TR>

It is chokng on the double-quotes . . . Any ideas?



------------------
GSG
Quote Reply
Re: Image Tags in Modify Record In reply to
You would do better to just have the URL in your text form field.

Code:
<TD VALIGN="TOP">
<INPUT TYPE="TEXT" NAME="Html Image Tag" VALUE="http://photo.com/images/63237028.JPG" SIZE="30"
MAXLENGTH="50"></TD></TR>

Then, in html_record, when you print it out, use:

Code:
<img src="$rec{'Html Image Tag'}">

It's not just the extra quotation marks that are causing the problem. It's also the < and > that are part of your img src tag.

If you did want to keep it in there, you might have better luck using a textarea field rather than a text field.


------------------
JPD







[This message has been edited by JPDeni (edited August 21, 1999).]
Quote Reply
Re: Image Tags in Modify Record In reply to
Thanks for the answer, but the problem is in the format my database requires for use with another program.

My database flatfile is pipe delimited and the entire field needs to have the image tag in its entirety. Here is what the individual flatfile feild looks like:

|<IMG SRC = "http://www.photo.com/images/63237021.JPG" >|


sometimes it will even have this:

|<a href="http://www.photo.com/images/63237021.JPG"><IMG SRC = "http://www.photo.com/images/63237021_thumb.JPG" ></a>|


All of this because of the needs of the other program to display product/service images on the page.

<BTW> The code I displayed was the final incorrect output from DBMan. My code in DBMan is exactly what you specified.

Thanks for the help,

Weary C++ Programmer
Quote Reply
Re: Image Tags in Modify Record In reply to
Probably the best thing to do then is to change the field into a textarea field. You won't have the same problems as you have with a text field. (I have included <img src tags in textareas myself with no bad result.)


------------------
JPD





Quote Reply
Re: Image Tags in Modify Record In reply to
Thanks, I will try it Smile

GSG