Can you send me a screen shot? :-D

Ok, it works for you. how are you viewing the pages? do you simply 
open the first, and click to the second?  I load the first page via 
the index.html that I'm using. Yes, at this stage, locally on my 
computer.  Is that  a problem? I did try uploading the pages to the 
web server, and got the same result.  What am I doing wrong? :-(( 
It's driving me nuts!! arrgghhh!!   Can you tell me what you did 
with that code, to view it, and see it work?

Thanks mate.

Trev.

--- In [email protected], Mark E 
<[EMAIL PROTECTED]> wrote:
> Trev,
>  
> Would you believe me if I told you that this works for me?  I see 
the value in the textbox (formerly the hidden control) and I even 
added a new hidden control using your exact code and it works fine 
for me.
>  
> Mark
> 
> Trev <[EMAIL PROTECTED]> wrote:
> That would be correct. I need the value from used_1.html here :
> > <FORM ACTION="used_enquiry.asp" METHOD="POST">
> >       <INPUT TYPE="HIDDEN" NAME="sNumber" VALUE="2848">
> >       <INPUT TYPE="submit" VALUE="Query This Car">
> > </FORM>
> 
> to pass to used_enquiry.asp, such that it passes to here :
> 
> > <%
> > sNumber=request.form("sNumber")
> > %>
> 
> 
> >       <INPUT NAME="Stock#" VALUE="<%=sNumber%>">
> 
> I hope this is possible! The reason I wish it to go this way, is 
so 
> I can use the same enquiry form, rather than writing one for each 
> vehicle, as when someone enquires, we want the form to tell us 
which 
> car they're enquiring about.  I've completely re-designed the 
> website, as the one before was like a dog's breakfast.  Sure, I'm 
> not a pro at it, but I know enough HTML to make a quite tidy site. 
> I've just never dealt with forms and passing data between pages.  
> Your help on this will be greatly appreciated! GREATLY!  Thanks.
> 
> Trev.
> 
> 
> --- In [email protected], Mark E 
> <[EMAIL PROTECTED]> wrote:
> > Trev,
> >  
> > Is the issue getting the value for sNumber from used_1.html to 
> used_enquiry.asp?  
> >  
> > Mark
> > 
> > Trev <[EMAIL PROTECTED]> wrote:
> > 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
> > 
> >    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 the Yahoo! Terms of 
> Service. 
> > 
> > 
> > 
> > [Non-text portions of this message have been removed]
> 
> 
> 
> 
> ---------------------------------
> 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 the Yahoo! Terms of 
Service. 
> 
> 
> 
> [Non-text portions of this message have been removed]




 
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