Peter, I have tried uploading pages to a web server, and got exactly 
the same result.  Is there anything else I need to do to make the 
asp and passing data to work? It's got me stumped!

--- In [email protected], "Peter Brunone" 
<[EMAIL PROTECTED]> wrote:
> 
>       It sounds like your asp extension isn't mapped correctly.
> 
>       Actually, I'll bet what's happening is that you're
> double-clicking the HTML page from the file system rather than 
accessing
> it through the web server; this causes the file to be *read* 
rather than
> *executed*, which means the text is just sent as-is to the browser.
> 
> Cheers,
> 
> Peter
> 
> -----Original Message-----
> From: [email protected] On Behalf Of Trev
> 
> Ok, the first page is saved as a HTML document.  Basically what I 
need 
> to happen is when the "query this car" button is pressed, the 
stock 
> number (2848) is submitted to the "used_enquiry.asp".  the asp 
form, 
> is then to submit the stock number (sNumber) when the person has 
> filled out the rest of the form and pressed submit.  I've 
> intentionally turned of the "hidden" attribute in the asp, to see 
what 
> it displays.
> 
> used_1.html
> -----------
> <HTML>
> <HEAD>
>       <TITLE>GLADSTONE MOTORWORLD - Used Car Profile</TITLE>
> 
> 
> </HEAD>
> <BODY BGCOLOR="#000000" onLoad="window.location.hash='TOP';">
> <TABLE ALIGN=CENTER VALIGN=CENTER WIDTH="774" BORDER="0" 
> CELLPADDING="0" CELLSPACING="0">
>    <TR>
>       <TD WIDTH="129" HEIGHT="0"><A NAME="TOP"></A></TD>
>       <TD WIDTH="129" HEIGHT="0"></TD>
>       <TD WIDTH="129" HEIGHT="0"></TD>
>       <TD WIDTH="129" HEIGHT="0"></TD>
>       <TD WIDTH="129" HEIGHT="0"></TD>
>       <TD WIDTH="129" HEIGHT="0"></TD>
>    </TR>
>    <TR>
> 
>       <TD><FONT FACE="Tahoma" COLOR="#FFFFFF" SIZE="+1">HONDA</TD>
>       <TD><FONT FACE="Tahoma" COLOR="#FFFFFF" SIZE="+1">CRV 
> SPORT</TD>
>       <TD COLSPAN="2"><FONT FACE="Tahoma" COLOR="#FFFFFF" 
> SIZE="+1">2001</TD>
>    </TR>
>    <TR>
>       <TD COLSPAN="4"><HR></TD>
>       <TD COLSPAN="2"></TD>
>    </TR>
>    <TR>
>       <TD COLSPAN="2" VALIGN=CENTER ALIGN=CENTER><A 
> HREF="../used_images/u2848.jpg"><IMG 
SRC="../used_images/u2848.jpg" 
> WIDTH="258" BORDER="0"></A></TD>
>       <TD COLSPAN="2" VALIGN=CENTER><FONT FACE="Tahoma" 
> COLOR="#FFFFFF"><I><U>FEATURES...</I></U>
>                                                   
> <BR><BR><UL><LI>DUAL SRS AIR-BAGS<BR>
>                                                       
>       <LI>ANTI-SKID BRAKING SYSTEM<BR>
>                                                       
        <LI>6 
> STACK CD PLAYER<BR>
>                                                       
>       <LI>SERVICE HISTORY<BR>
>                                                       
>       <LI>ALLOY SIDE STEPS<BR>
>                                                       
>       <LI>CHROME BULL-BAR<BR>
>                                                       
>       <LI>ROOF RACKS<BR>
>                                                       
>       <LI>DRIVING LIGHTS<BR></TD>
>    </TR>
>    <TR>
>       <TD COLSPAN="4"><BR><FONT FACE="Tahoma" COLOR="#FFFFFF">Go 
> anywhere in the classy Honda CRV Sport!</TD>
>       <TD COLSPAN="2"></TD>
>    </TR>
>    <TR>
>       <TD><SCRIPT LANGUAGE="JavaScript">
> <!--
> 
> var da = (document.all) ? 1 : 0;
> var pr = (window.print) ? 1 : 0;
> var mac = (navigator.userAgent.indexOf("Mac") != -1); 
> 
> function printPage(frame, arg) {
>   if (frame == window) {
>     printThis();
>   } else {
>     link = arg; // a global variable 
>     printFrame(frame);
>   }
>   return false;
> }
> 
> function printThis() {
>   if (pr) { // NS4, IE5
>     window.print();
>   } else if (da && !mac) { // IE4 (Windows)
>     vbPrintPage();
>   } else { // other browsers
>     alert("Sorry, your browser doesn't support this feature.");
>   }
> }
> 
> function printFrame(frame) {
>   if (pr && da) { // IE5
>     frame.focus();
>     window.print();
>     link.focus();
>   } else if (pr) { // NS4
>     frame.print();
>   } else if (da && !mac) { // IE4 (Windows)
>     frame.focus();
>     setTimeout("vbPrintPage(); link.focus();", 100);
>   } else { // other browsers
>     alert("Sorry, your browser doesn't support this feature.");
>   }
> }
> 
> if (da && !pr && !mac) with (document) {
>   writeln('<OBJECT ID="WB" WIDTH="0" HEIGHT="0" 
> CLASSID="clsid:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>');
>   writeln('<' + 'SCRIPT LANGUAGE="VBScript">');
>   writeln('Sub window_onunload');
>   writeln('  On Error Resume Next');
>   writeln('  Set WB = nothing');
>   writeln('End Sub');
>   writeln('Sub vbPrintPage');
>   writeln('  OLECMDID_PRINT = 6');
>   writeln('  OLECMDEXECOPT_DONTPROMPTUSER = 2');
>   writeln('  OLECMDEXECOPT_PROMPTUSER = 1');
>   writeln('  On Error Resume Next');
>   writeln('  WB.ExecWB OLECMDID_PRINT, 
OLECMDEXECOPT_DONTPROMPTUSER');
>   writeln('End Sub');
>   writeln('<' + '/SCRIPT>');
> }
> 
> // -->
> </SCRIPT>
> <A HREF="#" onClick="return printPage(window)"><INPUT TYPE=BUTTON 
> VALUE="Print This Car"></A><BR></TD>
>       <TD COLSPAN="3"><BR><BR><FONT FACE="Tahoma" 
> COLOR="#CCCCCC"></TD>
> 
>    </TR>
> </TABLE>
> <FORM ACTION="used_enquiry.asp" METHOD="POST">
>       <INPUT TYPE="HIDDEN" NAME="sNumber" VALUE="2848">
>       <INPUT TYPE="submit" VALUE="Query This Car">
> </FORM>
> </BODY>
> </HTML>
> 
> used_enquiry.asp
> ----------------
> <HTML>
> <HEAD>
> <TITLE>Used Car Enquiry</TITLE>
> 
> <SCRIPT LANGUAGE="JavaScript">
> var strValue = location.search.split( '=' )[1];
> </SCRIPT>
> 
> </HEAD>
> <BODY BGCOLOR="#FFFFFF">
> 
> <%
> sNumber=request.form("sNumber")
> %>
> 
> <FORM METHOD="POST" 
> ACTION="http://free.allforms.mailjol.net/u/107910.php";>
> 
>       <INPUT NAME="Stock#" VALUE="<%=sNumber%>">
> 
> <TABLE ALIGN=CENTER WIDTH="674" BORDER="0" CELLPADDING="0" 
> CELLSPACING="0" BGCOLOR="#FFFFFF">
>    <TR>
>       <TD WIDTH="129" HEIGHT="0"></TD>
>       <TD WIDTH="129" HEIGHT="0"></TD>
>       <TD WIDTH="129" HEIGHT="0"></TD>
>       <TD WIDTH="129" HEIGHT="0"></TD>
>       <TD WIDTH="129" HEIGHT="0"></TD>
>       <TD></TD>
>    </TR>
>    <TR>
>       <TD COLSPAN="6"><BR><BR></TD>
>    </TR>
>    <TR>
>       <TD></TD>
>       <TD COLSPAN="5"><%= Request.QueryString("sNumber") %
> ><br><br>Please fill out and submit this form to our staff.<BR>
>                       They will get respond to your enquiry as 
soon 
> as possible.</TD>
>    </TR>
>    <TR>
>       <TD COLSPAN="6"><BR><BR></TD>
>    </TR>
>    <TR>
>       <TD></TD>
>       <TD COLSPAN="5">Personal Information :<BR><BR></TD>
>    </TR>
>    <TR>
>       <TD></TD>
>       <TD>Name:* (required)</TD>
>       <TD COLSPAN="2"><INPUT TYPE="text" SIZE="40" 
MAXLENGTH="256"   
> NAME="realname"></TD>
>   </TR>
>    <TR>
>       <TD></TD>
>       <TD>Company:</TD>
>       <TD COLSPAN="2"><INPUT TYPE="text" SIZE="40" MAXLENGTH="256" 
> NAME="Company"></TD>
>   </TR>
>    <TR>
>       <TD></TD>
>       <TD>Email: * (required)</TD>
>       <TD COLSPAN="2"><INPUT TYPE="text" SIZE="40" MAXLENGTH="256" 
> NAME="email"></TD>
>    </TR>
>    <TR>
>       <TD></TD>
>       <TD>Phone Number* (required)<BR>(Business Hours)</TD>
>       <TD COLSPAN="2"><INPUT TYPE="text" SIZE="20" MAXLENGTH="256" 
> NAME="dayphone"></TD>
>    </TR>
>    <TR>
>       <TD></TD>
>       <TD>Phone Number* (required)<BR>(After Hours)</TD>
>       <TD COLSPAN="2"><INPUT TYPE="text" SIZE="20" MAXLENGTH="256" 
> NAME="nitephone"></TD>
>    </TR>
>    <TR>
>       <TD COLSPAN="6"><BR><BR></TD>
>    </TR>
>    <TR>
>       <TD></TD>
>       <TD COLSPAN="5">What do you wish to know about this 
> vehicle? :<BR><BR></TD>
>    </TR>
>    <TR>
>       <TD></TD>
>       <TD COLSPAN="3"><TEXTAREA onFocus="this.value=''; 
> this.onfocus=null;"  NAME="comments_questions" ROWS="12" 
> COLS="55">Type your car enquiry here.</TEXTAREA></TD>
>    </TR>
>    <TR>
>       <TD COLSPAN="6"><BR></TD>
>    </TR>
>    <TR>
>       <TD></TD>
>       <TD><INPUT TYPE="submit" value="Submit"></TD>
>       <TD><INPUT TYPE="reset" value="Reset"></TD>
>    </TR>
> </TABLE>
> </FORM>
> </BODY>
> </HTML>
> 
> 
> Per say you do "submit" the asp form, make sure you put "testing" 
or 
> something in the textbox. that way I know what's happening.
> 
> Thanks in advance,
> 
> Trev.
> --- In [email protected], Mark E 
> <[EMAIL PROTECTED]> wrote:
> > Trev,
> >  
> > The quotes don't matter, as I use it this way all the time to 
pass
> value between pages.  
> >  
> > Post your code and we'll look at it.
> >  
> > Mark
> > 
> 
> 
> 
> 
> 
>  
> Yahoo! Groups Links




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to