rockinhorse
Programmer
I am using an image to call an asp file with the "<a href" function. The file that is called does not read the text fields from the form at all. If I use a standard button object and vbscript (see below) it works.
<form name="frmLogin" method="post" action="submit">
<script language="vbscript">
Sub ProcessLogin
frmLogin.action = "/loginpost.asp"
frmLogin.submit()
End Sub
</script>
If I use an image and call the same file (see below)
it failes to read the texte fields for username and password. (See below).
Sub HyperImage(sReference,sImage,lBorder,lWidth,lHeight,sTag)
Dim sPathAndImage
sPathAndImage = Session("WebImagePath") & sImage
Response.Write("<a href='" & sReference & "'><img src='" & sPathAndImage & "' border=" & lBorder & " width=" & lWidth & " height=" & lHeight & " alt='" & sTag & "'></a>")
End Sub
This function works with all other uses except for this one.
Can anyone help?
<form name="frmLogin" method="post" action="submit">
<script language="vbscript">
Sub ProcessLogin
frmLogin.action = "/loginpost.asp"
frmLogin.submit()
End Sub
</script>
If I use an image and call the same file (see below)
it failes to read the texte fields for username and password. (See below).
Sub HyperImage(sReference,sImage,lBorder,lWidth,lHeight,sTag)
Dim sPathAndImage
sPathAndImage = Session("WebImagePath") & sImage
Response.Write("<a href='" & sReference & "'><img src='" & sPathAndImage & "' border=" & lBorder & " width=" & lWidth & " height=" & lHeight & " alt='" & sTag & "'></a>")
End Sub
This function works with all other uses except for this one.
Can anyone help?