hi, i have two pages, index.asp and moreinfo.asp. Index.asp should pass 3 querystring db field values to moreinfo.asp. It passes two but leaves the third blank. It was working and still does locally but not live. Driving me crazy. Any ideas? (3 fields are itemID, itemname, amount). then click more info button.
****************
The moreinfo button on index.asp has this link:
<a href="moreinfo.asp?itemID=<%=(Recordset1.Fields.Item("itemID".Value)%>&itemname=<%=(Recordset1.Fields.Item("itemname".Value)%>&amount=<%=(Recordset1.Fields.Item("amount".Value)%>"><img src="/images/moreinfo_c.gif" width="86" height="18" border="0"></a>
The moreinfo.asp page code:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/ss.asp" -->
<%
Dim Recordset1__MMColParam
Recordset1__MMColParam = "1"
if (Request.QueryString("itemID" <> "" then Recordset1__MMColParam = Request.QueryString("itemID"
%>
<%
set Recordset1 = Server.CreateObject("ADODB.Recordset"
Recordset1.ActiveConnection = MM_ss_STRING
Recordset1.Source = "SELECT * FROM items WHERE itemID = " + Replace(Recordset1__MMColParam, "'", "''" + " ORDER BY itemname ASC"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 3
Recordset1.Open()
Recordset1_numRows = 0
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>SamuraiSalvage.com - More Info Request</title>
<link rel="stylesheet" href="/style.css" type="text/css">
</head>
<body bgcolor="#FFFF99">
<div align="center"><img src="/images/logo_thanks.gif" width="136" height="145">
<hr width="400">
</div>
<table width="70%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<form name="form1" method="post" action="sendmail.asp">
<div align="center">
<p><b class="spothead">REQUEST FOR MORE INFORMATION</b><br>
<b><%=(Recordset1.Fields.Item("itemname".Value)%></b> <br>
<%= FormatCurrency((Recordset1.Fields.Item("amount".Value), 0, -2, -2, -2) %>
</div>
<hr width="400">
<p align="center">Please complete this form or, <a href="javascript:history.go(-1)">go
back</a> to the previous page.<br>
<br>
<b>Your name:</b>
<input type="text" size="25" name="name">
<b>Your email:</b>
<input type="text" size="25" name="email">
</p>
<div align="center"><b>Your Question:</b><br>
<textarea name="body" cols="67" rows="5" wrap="PHYSICAL"></textarea>
<input type="hidden" name="amount" value="<%=(Recordset1.Fields.Item("amount".Value)%>">
<input type="hidden" name="itemname" value="<%=(Recordset1.Fields.Item("itemname".Value)%>">
</div>
<div align="center">
<input type="submit" name="Submit" value="Submit">
<br>
</div>
</form>
</td>
</tr>
</table>
</body>
</html>
<%
Recordset1.Close()
%>
****************
The moreinfo button on index.asp has this link:
<a href="moreinfo.asp?itemID=<%=(Recordset1.Fields.Item("itemID".Value)%>&itemname=<%=(Recordset1.Fields.Item("itemname".Value)%>&amount=<%=(Recordset1.Fields.Item("amount".Value)%>"><img src="/images/moreinfo_c.gif" width="86" height="18" border="0"></a>
The moreinfo.asp page code:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/ss.asp" -->
<%
Dim Recordset1__MMColParam
Recordset1__MMColParam = "1"
if (Request.QueryString("itemID" <> "" then Recordset1__MMColParam = Request.QueryString("itemID"
%>
<%
set Recordset1 = Server.CreateObject("ADODB.Recordset"
Recordset1.ActiveConnection = MM_ss_STRING
Recordset1.Source = "SELECT * FROM items WHERE itemID = " + Replace(Recordset1__MMColParam, "'", "''" + " ORDER BY itemname ASC"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 3
Recordset1.Open()
Recordset1_numRows = 0
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>SamuraiSalvage.com - More Info Request</title>
<link rel="stylesheet" href="/style.css" type="text/css">
</head>
<body bgcolor="#FFFF99">
<div align="center"><img src="/images/logo_thanks.gif" width="136" height="145">
<hr width="400">
</div>
<table width="70%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<form name="form1" method="post" action="sendmail.asp">
<div align="center">
<p><b class="spothead">REQUEST FOR MORE INFORMATION</b><br>
<b><%=(Recordset1.Fields.Item("itemname".Value)%></b> <br>
<%= FormatCurrency((Recordset1.Fields.Item("amount".Value), 0, -2, -2, -2) %>
</div>
<hr width="400">
<p align="center">Please complete this form or, <a href="javascript:history.go(-1)">go
back</a> to the previous page.<br>
<br>
<b>Your name:</b>
<input type="text" size="25" name="name">
<b>Your email:</b>
<input type="text" size="25" name="email">
</p>
<div align="center"><b>Your Question:</b><br>
<textarea name="body" cols="67" rows="5" wrap="PHYSICAL"></textarea>
<input type="hidden" name="amount" value="<%=(Recordset1.Fields.Item("amount".Value)%>">
<input type="hidden" name="itemname" value="<%=(Recordset1.Fields.Item("itemname".Value)%>">
</div>
<div align="center">
<input type="submit" name="Submit" value="Submit">
<br>
</div>
</form>
</td>
</tr>
</table>
</body>
</html>
<%
Recordset1.Close()
%>