mtaylor197
Programmer
I am getting an "Object Exptected" error. I was validating some information and then redirecting to this page so that the info can be submited using the post method. I am new to Javascript so I can't figure out what is wrong. Here is my code:
<%
Session("ioc_merchant_id" = Request("ioc_merchant_id"
Session("ioc_order_total_amount" = Request("ioc_order_total_amount"
Session("ecom_billto_postal_street_line1" = Request("ecom_billto_postal_street_line1"
Session("ecom_billto_postal_street_line2" = Request("ecom_billto_postal_street_line2"
Session("ecom_billto_postal_postalcode" = Request("ecom_billto_postal_postalcode"
Session("ecom_billto_postal_countrycode" = Request("ecom_billto_postal_countrycode"
Session("PaymentCCType" = Request("PaymentCCType"
Session("ecom_billto_online_email" = Request("ecom_billto_online_email"
Session("ecom_payment_card_name" = Request("ecom_payment_card_name"
Session("ecom_payment_card_number" = Request("ecom_payment_card_number"
Session("ecom_payment_card_expdate_month" = Request("ecom_payment_card_expdate_month"
Session("ecom_payment_card_expdate_year" = Request("ecom_payment_card_expdate_year"
Session("ioc_merchant_id" = Request("ioc_merchant_id"
Session("ioc_order_total_amount" = Request("ioc_order_total_amount"
%>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
<script language="Javascript">
function Submit()
{
document.submitnow.merchant_id.value = <%=session("ioc_merchant_id"%>;
document.submitnow.order_amount.value = <%=session("ioc_order_total_amount"%>;
document.submitnow.street1.value = <%=session("ecom_billto_postal_street_line1"%>;
document.submitnow.street2.value = <%=session("ecom_billto_postal_street_line2"%>;
document.submitnow.postalcode.value = <%=session("ecom_billto_postal_postalcode"%>;
document.submitnow.countrycode.value = <%=session("ecom_billto_postal_countrycode"%>;
document.submitnow.email.value = <%=session("ecom_billto_online_email"%>;
document.submitnow.name.value = <%=session("ecom_payment_card_name"%>;
document.submitnow.number.value = <%=session("ecom_payment_card_number"%>;
document.submitnow.expmonth.value = <%=session("ecom_payment_card_expdate_month"%>;
document.submitnow.expyear.value = <%=session("ecom_payment_card_expdate_year"%>;
document.submitnow.submit;
}
</script>
</HEAD>
<BODY onLoad="Submit()">
<form name="submitnow" action="test2.asp" method="post">
<input type="hidden" name="merchant_id">
<input type="hidden" name="order_amount">
<input type="hidden" name="street1">
<input type="hidden" name="street2">
<input type="hidden" name="postalcode">
<input type="hidden" name="countrycode">
<input type="hidden" name="email">
<input type="hidden" name="name">
<input type="hidden" name="number">
<input type="hidden" name="expmonth">
<input type="hidden" name="expyear">
</form>
<P> </P>
</BODY>
</HTML>
Thanks,
Michelle
<%
Session("ioc_merchant_id" = Request("ioc_merchant_id"
Session("ioc_order_total_amount" = Request("ioc_order_total_amount"
Session("ecom_billto_postal_street_line1" = Request("ecom_billto_postal_street_line1"
Session("ecom_billto_postal_street_line2" = Request("ecom_billto_postal_street_line2"
Session("ecom_billto_postal_postalcode" = Request("ecom_billto_postal_postalcode"
Session("ecom_billto_postal_countrycode" = Request("ecom_billto_postal_countrycode"
Session("PaymentCCType" = Request("PaymentCCType"
Session("ecom_billto_online_email" = Request("ecom_billto_online_email"
Session("ecom_payment_card_name" = Request("ecom_payment_card_name"
Session("ecom_payment_card_number" = Request("ecom_payment_card_number"
Session("ecom_payment_card_expdate_month" = Request("ecom_payment_card_expdate_month"
Session("ecom_payment_card_expdate_year" = Request("ecom_payment_card_expdate_year"
Session("ioc_merchant_id" = Request("ioc_merchant_id"
Session("ioc_order_total_amount" = Request("ioc_order_total_amount"
%>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
<script language="Javascript">
function Submit()
{
document.submitnow.merchant_id.value = <%=session("ioc_merchant_id"%>;
document.submitnow.order_amount.value = <%=session("ioc_order_total_amount"%>;
document.submitnow.street1.value = <%=session("ecom_billto_postal_street_line1"%>;
document.submitnow.street2.value = <%=session("ecom_billto_postal_street_line2"%>;
document.submitnow.postalcode.value = <%=session("ecom_billto_postal_postalcode"%>;
document.submitnow.countrycode.value = <%=session("ecom_billto_postal_countrycode"%>;
document.submitnow.email.value = <%=session("ecom_billto_online_email"%>;
document.submitnow.name.value = <%=session("ecom_payment_card_name"%>;
document.submitnow.number.value = <%=session("ecom_payment_card_number"%>;
document.submitnow.expmonth.value = <%=session("ecom_payment_card_expdate_month"%>;
document.submitnow.expyear.value = <%=session("ecom_payment_card_expdate_year"%>;
document.submitnow.submit;
}
</script>
</HEAD>
<BODY onLoad="Submit()">
<form name="submitnow" action="test2.asp" method="post">
<input type="hidden" name="merchant_id">
<input type="hidden" name="order_amount">
<input type="hidden" name="street1">
<input type="hidden" name="street2">
<input type="hidden" name="postalcode">
<input type="hidden" name="countrycode">
<input type="hidden" name="email">
<input type="hidden" name="name">
<input type="hidden" name="number">
<input type="hidden" name="expmonth">
<input type="hidden" name="expyear">
</form>
<P> </P>
</BODY>
</HTML>
Thanks,
Michelle