I'm having a wee bit of trouble. The code is as below:

<%@ Language="VBScript" %>
<%

AlbumArt=/music/Request.Form("artist")/Request.Form("album")/Folder.jpg


%>
The values of artist and album are obtained through a form. What I want is that whenever a user submits the form with, say artist as "Dream Theater" and the album as "Awake", I want AlbumArt to have a value of "/music/Dream Theater/Awake/Folder.jpg. These 3 values (album, artist and AlbumArt are then stored in a database using SQL commands. Exactly how do I go about this?

Thanks in advance.

<% response.write("<img src='/music/"&Request.Form("artist")&"/"&Request.Form("album")&"/Folder.jpg'") %>

or

<% dim varAlbumArt
varAlbumArt = "/music/"&Request.Form("artist")&"/"&Request.Form("album")&"/Folder.jpg" %>

<img src="<%= varAlbumArt %>">

I'm having a wee bit of trouble. The code is as below:

<%@ Language="VBScript" %>
<%

AlbumArt=/music/Request.Form("artist")/Request.Form("album")/Folder.jpg


%>
The values of artist and album are obtained through a form. What I want is that whenever a user submits the form with, say artist as "Dream Theater" and the album as "Awake", I want AlbumArt to have a value of "/music/Dream Theater/Awake/Folder.jpg. These 3 values (album, artist and AlbumArt are then stored in a database using SQL commands. Exactly how do I go about this?

Thanks in advance.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.