I do need to mention that I didn't use the script you had given me - I tried,
but couldn't seem to figure out how to get it to work. Instead I used the
"confirmation field/page" in Frontpage. So, on the "availablenow.htm" page I
have the following script for each "Book Now" button:
<form method="POST" action="--WEBBOT-SELF--"
onSubmit="location.href='_derived/nortbots.htm';return false;"
webbot-onSubmit>
<!--webbot bot="SaveResults" U-File="_private/form_results.csv"
S-Format="TEXT/CSV" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE"
S-Builtin-Fields U-Confirmation-Url="book.htm" startspan --><input
TYPE="hidden" NAME="VTI-GROUP" VALUE="1"><!--webbot bot="SaveResults"
i-checksum="43406" endspan -->
<p><button name="B4" type="submit">Book Now!</button></p>
<input type="hidden" name="Cost" value="$450">
<input type="hidden" name="Dates" value="March 13-16, 2008">
<input type="hidden" name="Resort" value="Grand Desert">
<input type="hidden" name="Unit_Size" value="1 Bedroom Deluxe">
</form>
-----------------------------------------------------------------------------------------------------------------------------------
When this button is clicked, it goes to the "book.htm" page, where I have
another form for the client to submit their information. It does show the
information from the hidden fields from the previous page, which is a step in
the right direction. The code for this looks like:
<form method="POST" action="--WEBBOT-SELF--"
onsubmit="location.href='_derived/nortbots.htm';return false;"
language="JavaScript" name="FrontPage_Form1" webbot-onSubmit="return
FrontPage_Form1_Validator(this)">
<!--webbot bot="SaveResults" U-File="_private/form_results.csv"
S-Format="TEXT/CSV" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE"
S-Email-Format="TEXT/PRE" S-Email-Address="(e-mail address removed)"
B-Email-Label-Fields="TRUE" S-Builtin-Fields startspan
U-Confirmation-Url="bookingconfirmation.htm" --><input TYPE="hidden"
NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" endspan
i-checksum="43374" -->
<p align="left" style="margin-left: 285px"><br clear="left">
<u><b><font size="4">You are requesting to book the
following:</font></b></u></p>
<p align="left" style="margin-left: 285px"><b>Resort:</b>
<!--webbot bot="ConfirmationField" S-Field="Resort" --> </p>
<p align="left" style="margin-left: 285px"><b>Dates:
</b><!--webbot bot="ConfirmationField" S-Field="Dates" --></p>
<p align="left" style="margin-left: 285px"><b>Unit Size:</b>
<!--webbot bot="ConfirmationField" S-Field="Unit_Size" --></p>
<p align="left" style="margin-left: 285px"><b>Cost:</b>
<!--webbot bot="ConfirmationField" S-Field="Cost" --></p>
<p align="left" style="margin-left: 285px"><b>Name:
</b> <!--webbot bot="Validation" b-value-required="TRUE" --><input
type="text" name="Name" size="25"></p>
<p align="left" style="margin-left: 285px"><b>E-Mail Address: </b>
<!--webbot bot="Validation" b-value-required="TRUE" -->
<input type="text" name="Email" size="25"></p>
<p align="left" style="margin-left: 285px"><b>Street Address: </b>
<input type="text" name="Address" size="25"></p>
<p align="left" style="margin-left: 285px"><b>City: </b>
<input type="text" name="City" size="25"> <b>State: </b>
<input type="text" name="State" size="2"> <b>Zip
Code: </b>
<input type="text" name="ZipCode" size="5"></p>
<p align="left" style="margin-left: 285px"><b>Phone Number:</b>
<!--webbot bot="Validation" s-data-type="String" b-allow-digits="TRUE"
b-allow-whitespace="TRUE" s-allow-other-chars="-" i-maximum-length="15" -->
<input type="text" name="Phone" size="15" maxlength="15"></p>
<p align="left" style="margin-left: 285px"><b>Preferred payment
method:</b> <select size="1" name="PaymentMethod">
<option>PayPal/Credit Card</option>
<option>Personal Check*</option>
<option>Money Order*</option>
<option>Cashier's Check*</option>
</select><br>
<font size="2">*Personal checks, cashier's checks and money
orders must clear the bank prior to the reservation being final.
If your reservation is less than 20 days from now, the only form
of payment accepted is PayPal/credit card.
<a href="faq.htm">See more</a> on our payment policies.</font></p>
<p align="left" style="margin-left: 285px"><b>How did you find
our website?</b>
<input type="checkbox" name="Found_Website1"
value="Craigslist">Craigslist
<input type="checkbox" name="Found_Website2" value="Kijiji">Kijiji
<input type="checkbox" name="Found_Website3" value="VTR">Vacation
Timeshare Rentals
<input type="checkbox" name="Found_Website7" value="Bidshares">Bidshares
<input type="checkbox" name="Found_Website4" value="Google">Google
<input type="checkbox" name="Found_Website5" value="Friend_or_Family">A
friend/family member
<input type="checkbox" name="Found_Website6" value="Other">Other:
<input type="text" name="Found_Website" size="20"></p>
<p align="left" style="margin-left: 285px"><b>Questions,
requests, or comments: </b> <textarea rows="3" name="Comments"
cols="20"></textarea></p>
<p align="left" style="margin-left: 285px">Note: By submitting
this form you are only <i>requesting</i> to book the above
reservation. <br>
The reservation is not final until you have paid and returned
the rental agreement.</p>
<p align="center">
<input type="submit" value="Submit" name="Submit"><input type="reset"
value="Reset" name="Reset"><br>
-----------------------------------------------------------------------------------------------------------------------------------
When they click on this Submit button, it goes to the actual confirmation
page (bookingconfirmation.htm). I understand how to show the fields that
THEY filled out on the booknow.htm page, but I can't figure out how to carry
over the hidden fields that were originally taken from the availablenow.htm
page.
I hope this makes sense and I'm explaining it so that someone can understand
what I need and help me. Isn't there a way to just use some html code to
copy what's shown on another page? I was looking at some other html code
(like in my blogger page) and it seems to me that <$text$> is used to copy
from another source, but I don't get how to do that at all and can't find any
answers on the internet.
Any help would be much appreciated. This has been driving me crazy for
nearly two months now and I'd really like to finish setting up this webpage
to make it more functional and easy to use!
sunorsnow said:
Hello again. I'm back trying to work on this; I had to take a break for a
few weeks because I just had too much going on to focus on this particular
project.
If I use the html code you gave me (
http://irt.org/script/480.htm), how can
I get the information pulled into the form to also get e-mailed to me? Right
now I can get the hidden fields to transfer over to my booking page (see
www.sunorsnowtimeshare.com/availablenow.htm, click on one of the "Book Now!"
buttons), but then when the client hits the "Submit" button on the booking
page, the information from those hidden fields don't get e-mailed to me,
which is VERY important. I looked at doing a multi-page form, but this would
be WAY too much work to do for each reservation. Please help!!
Stefan B Rusynko said:
You need to make each book now button part of a separate form w/ the data for that booking just in that form
--
_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________
| Excellent. I have just one more question (if you don't mind)....I think that
| link with the html code will work, but how do I change it so that it pulls
| from each column/row for the separate "book now" buttons?
|
| "Stefan B Rusynko" wrote:
|
| > You can do html page (w/ the 2nd link I posted) you or asp pages (if you host supports ASP with the scripts I posted
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > _____________________________________________
| >
| >
| > | Can I change the pages to .asp to make it work?
| > |
| > | "Stefan B Rusynko" wrote:
| > |
| > | > Since you are using htm pages you can't use server side script (asp)
| > | > See
http://irt.org/script/480.htm
| > | >
| > | > --
| > | >
| > | > _____________________________________________
| > | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > | > "Warning - Using the F1 Key will not break anything!" (-;
| > | > _____________________________________________
| > | >
| > | >
| > | > | Maybe posting the URL to my site would help explain what I'm trying to do.
| > | > | Here is the page I want to add "Book Now" buttons to:
| > | > |
http://www.sunorsnowtimeshare.com/availablenow.htm. Here is the page I want
| > | > | the "Book Now" button to go to, but with the resort, date and unit size
| > | > | already filled in with the information from the table on the "available now"
| > | > | page.
http://www.sunorsnowtimeshare.com/book.htm
| > | > |
| > | > | I'm really not familiar at all with scripting or detailed codes, so any help
| > | > | someone can offer to a beginner would be very much appreciated!
| > | > |
| > | > | "Stefan B Rusynko" wrote:
| > | > |
| > | > | > If you as using ASP pages (VBscript)
| > | > | > You send your booking info page forms to a .asp page (client info form page)
| > | > | > You 1st parse the form data received, say as:
| > | > | > <%
| > | > | > resortname=Request.Form("resortname")
| > | > | > startdate=Request.Form("startdate")
| > | > | > enddate=Request.Form("enddate")
| > | > | > unitsize=Request.Form("unitsize")
| > | > | > %>
| > | > | >
| > | > | > Then you add those value to your 2nd form as hidden fields
| > | > | >
| > | > | > <input type="hidden" name="resortname" value="<%=resortname%>">
| > | > | > <input type="hidden" name="startdate" value="<%=startdate%>">
| > | > | > <input type="hidden" name="enddate" value="<%=enddate%>">
| > | > | > <input type="hidden" name="unitsize" value="<%=unitsize%>">
| > | > | >
| > | > | > Or display them in the page as say:
| > | > | > Resort: <%=resortname%>,Unit Size: =<%=unitsize%>, From <%=startdate%> To <%=enddate%>
| > | > | > --
| > | > | >
| > | > | > _____________________________________________
| > | > | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > | > | > "Warning - Using the F1 Key will not break anything!" (-;
| > | > | > _____________________________________________
| > | > | >
| > | > | >
| > | > | > | > |I have a table on one webpage with information about unit rentals and a
| > | > | > | button at the end of each row for clients to "book now." I have another
| > | > | > | webpage that is a form for the clients to fill out with their name, phone
| > | > | > | number, etc., but I'd like for the details from the table on the other page
| > | > | > | (resort name, dates, unit size) to automatically be filled in on the form. I
| > | > | > | do not know how to use VB Script, so I'm a little lost here. Can anyone tell
| > | > | > | me what codes to use in VB and exactly how to use it? Thanks!
| > | > | >
| > | > | >
| > | > | >
| > | >
| > | >
| > | >
| >
| >
| >