GavinStollar
05-09-2005, 03:56 AM
:confused:
Hi i am battling to find a solution to two problems. I am not the best programmer in the world as well which makes things more difficult. I have designed an Ecommerce products section for my website. I have used Access 2003 and Front page 2003.I have managed to complete 95% of the functionality for the eCommerce section i.e. u can add stuff to basket, delete, update it etc. The basket keeps track of what you have ordered. You can then commit the order, enter your customer info and an invoice page pops up. The invoice page simply displays three database results sections 1) customer info 2) order detail committed 3) order totals committed. I have received a mail.asp file from my service provide that lets me submit info into a text field and email it via there mail server. I have looked at solutions all over the web and most of them appear to deal with information submitted into a form being emailed, not information being displayed on a web page via database results , being emailed
My questions are:
1) What is the easiest way for me to automatically (when a button is clicked by the visitor) to send the invoice as it looks on the web page to the customer & me who just placed the order in html format?
2) When a visitor enters the basket section of the application he has to press on a button “click to view basket”. The submit button posts the users IP address back to the form. Below is the code:
<form BOTID="0" METHOD="POST" action="ProducsTotalBasket.asp">
<table BORDER="0" id="table55">
<tr>
<td>
<p style="line-height: 100%; margin-top: 0; margin-bottom: 0">
<input type="image" value="Submit" border="0" id="img14" src="images/button8A1.jpg" height="20" width="155" alt="Click to View your Basket" fp-style="fp-btn: Glass Rectangle 5; fp-font-color-hover: #0000FF; fp-font-color-press: #FF0000; fp-proportional: 0; fp-orig: 0" fp-title="Click to View your Basket" onmouseover="FP_swapImg(1,0,/*id*/'img14',/*url*/'images/button8B1.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img14',/*url*/'images/button8A1.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img14',/*url*/'images/button8C1.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img14',/*url*/'images/button8B1.jpg')" <img name="I1"></td>
<td>
<p style="line-height: 100%; margin-top: 0; margin-bottom: 0">
<input TYPE="HIDDEN" NAME="Remote_computer_name" VALUE="<%=Request.Servervariables("REMOTE_ADDR")%>" size="20">
</tr>
</table>
</form>
I have tried to automate the submit function by placing the following code into the body of the web page:
<BODY onLoad="window.document.postform.submit()">
This works, in that the records in the basket are displayed automatically without clicking on the submit button however the screen starts going berserk and the form keeps posting to itself i.e. the “ProducsTotalBasket.asp” page mentioned above. It simply won’t stop & keeps looping and posting over and over again.
Please help me?
Hi i am battling to find a solution to two problems. I am not the best programmer in the world as well which makes things more difficult. I have designed an Ecommerce products section for my website. I have used Access 2003 and Front page 2003.I have managed to complete 95% of the functionality for the eCommerce section i.e. u can add stuff to basket, delete, update it etc. The basket keeps track of what you have ordered. You can then commit the order, enter your customer info and an invoice page pops up. The invoice page simply displays three database results sections 1) customer info 2) order detail committed 3) order totals committed. I have received a mail.asp file from my service provide that lets me submit info into a text field and email it via there mail server. I have looked at solutions all over the web and most of them appear to deal with information submitted into a form being emailed, not information being displayed on a web page via database results , being emailed
My questions are:
1) What is the easiest way for me to automatically (when a button is clicked by the visitor) to send the invoice as it looks on the web page to the customer & me who just placed the order in html format?
2) When a visitor enters the basket section of the application he has to press on a button “click to view basket”. The submit button posts the users IP address back to the form. Below is the code:
<form BOTID="0" METHOD="POST" action="ProducsTotalBasket.asp">
<table BORDER="0" id="table55">
<tr>
<td>
<p style="line-height: 100%; margin-top: 0; margin-bottom: 0">
<input type="image" value="Submit" border="0" id="img14" src="images/button8A1.jpg" height="20" width="155" alt="Click to View your Basket" fp-style="fp-btn: Glass Rectangle 5; fp-font-color-hover: #0000FF; fp-font-color-press: #FF0000; fp-proportional: 0; fp-orig: 0" fp-title="Click to View your Basket" onmouseover="FP_swapImg(1,0,/*id*/'img14',/*url*/'images/button8B1.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img14',/*url*/'images/button8A1.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img14',/*url*/'images/button8C1.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img14',/*url*/'images/button8B1.jpg')" <img name="I1"></td>
<td>
<p style="line-height: 100%; margin-top: 0; margin-bottom: 0">
<input TYPE="HIDDEN" NAME="Remote_computer_name" VALUE="<%=Request.Servervariables("REMOTE_ADDR")%>" size="20">
</tr>
</table>
</form>
I have tried to automate the submit function by placing the following code into the body of the web page:
<BODY onLoad="window.document.postform.submit()">
This works, in that the records in the basket are displayed automatically without clicking on the submit button however the screen starts going berserk and the form keeps posting to itself i.e. the “ProducsTotalBasket.asp” page mentioned above. It simply won’t stop & keeps looping and posting over and over again.
Please help me?