Forum Moderators: open
I cant seem to figure out why i get blank...
This is my 1st form
<form id=form1 name=form1 method="post" action="license_delete.asp">
<center><INPUT id=button1 type=submit value=Delete name=btnDel></center>
</form>
This is my 2nd form
<%
on error goto 0 Set rs = Server.CreateObject("ADODB.RecordSet")
'QueryStrings
strId = Request.QueryString("ID")
'get the selected software info
sqlstr = "SELECT " & _
" Filename,Filesize,FileType,SwName,SwVersion,SwCompany,LicenseNumber" & _
" ,LicenseDate,LicenseEndDate,LicenseAmount,siasid,Ownername,Owneremail" & _
" from LicenseTab where id = '" & strID & "' "
rs.Open sqlstr, connStr
If Request.QueryString("btnDel") = "Delete" Then
Set rs2 = Server.CreateObject("ADODB.RecordSet")
sqlstr ="DELETE FROM LicenseTab Where id = '" & strID & "' "
rs2.Open sqlstr2, connStr
Response.Write "<font color=""green"">Data was successfully deleted..."
Response.Write "</font>"
Response.Write "<br>"
Response.Write "<A href=""license_list.asp"">Click here to continue.."
End if
%>
I get link to my 2nd page when i click on delete on the 1st page..
but..it displays a blank page...?
I'd personally not advise using simply Request("Field"), because it not only suggests you're using a default because you're not sure what you're doing, but also complicates the possibility to post to url that allready has a querystring:
<form method='post' action='savedata.asp?mode=customer'>
This could of course be solved with hidden input fields, but still...if you know what you're doing, you don't need it.