Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<%
String description = request.getParameter("description");
out.print("<img src=\"***************\" width=\"50px\" />"); %>
<input type="text" name="description" />
<input type="file" name="file" />
<input type="submit" />

here all i need is to pass a the variable "description" in the img src so that that image is displayed after uploading.
Posted
Comments
Krunal Rohit 13-Oct-15 3:44am    
<%
out.print("<img src="%><% request.getParameter("description")%><%" width=\"50px\" />");
%>
Just a wild guess, let me know if it works !

-KR
Member 12049228 13-Oct-15 5:40am    
hey krunal, i tried this one.
<img src=<%=request.getParameter("description")%> width=\"50px">
but it is not fetching any value.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900