IMPUT TYPE=IMAGE / HELP PLEASE!

C

Coby Herd

I have a content mgmt page that allows a user to update products in his
store - (actually a used car lot). All of the fields work perfectly - when
he puts content in.changes prices, etc it writes to the database and when
the page is refreshed the changes appear.

The problem is the image fields. They work OK if you put the correct HTML
tags in
i.e.-<img src="images/imagename.jpg"> I need a simpler way of doing this so
I tried to change the for the form fields from
<input size=28 name="image" value="<%= Server.HTMLEncode(image & "") %>"
maxlength=100

to
<input type="file" size=28 name="image" value="<%= Server.HTMLEncode(image &
"") %>" maxlength=100>

it sorta works and sorta doesn't - The whole location of the file I am
trying to insert i.e.-
C:\Documents and Settings\Administrator\My Documents\My Pictures\coby1c.jpg
gets put into the field

I need to find out how to have the script just put the image tag he wants
into the field

Any suggestions?
and thanx for any help

CobyfromBrooklyn
 
P

Patrice

You can't define programmatically the value for an input type=file field for
security reasons...

Depending on what you are trying to do you could just display the image and
use the form field only if the user want to update the current image...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top