0

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.

2
Contributors
1
Reply
2
Views
11 Years
Discussion Span
Last Post by william_stam
0

<% 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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.