;

PDA

Click to See Complete Forum and Search --> : Shopping Cart Login Script


dalilama
04-21-2005, 10:30 AM
Hi, hope all is well with everyone.

I am creating a topbar with a zip code input field and a login for a shopping cart (user and password). I want this to be all flash. Can anyone point me to a script example?

Thank you again for all of your past help, and in advance if anyone can hook me up with the right script and/or example.

Below is a summary of the asp form and input code.
================================================== ===================
FORM <FORM action="/locator/Zip.asp" name="form1" method="post" target="_blank">
BOX <input name="PostalCode" size="8" style="border= #aaaaaa 1px solid; background: #dddddd; height=17; align=middle;">
BUTTON <input type="image" src="shop.gif" value="Enter" name="Enter" style="float: left"></FORM>

FORM <form method="post" action="/locator/login.asp" id=form1 name=form1 target="_blank">
USER <input name=loginName size=14 style="border= #aaaaaa 1px solid; background: #dddddd; height=17; align=middle;">
PASSWORD <INPUT id=password name=password type=password size=14 style="border= #aaaaaa 1px solid; background: #dddddd; height=17; align=middle;">
<input type="image" src="LOGIN.gif" value=Submit id=Submit name=Submit style="float: left">
================================================== ===================
again, thanks sooooo much

necromanthus
04-22-2005, 03:40 AM
You need 3 dynamic text fields and a button.
Also you need some active script in background (PHP,CGI,ASP) to deal with these variables.
You may use the GuestBook (http://necromanthus.com/KoolMoves/GuestBook.html) example (the "SIGN" part) as starting point.

edited: in your case, the script for that button should look like:
on(press){
this.loadVariables("locator/Zip.asp?PostalCode="+txt1+"&loginName="+txt2+"&password="+txt3,"POST");
}

;)

gusmus
04-22-2005, 04:33 AM
I would be very careful about using flash for logins on anything that needs to be secure, such as shopping carts etc, unless you script it to write to and read from a secure database "Mysql etc" which should ideally be housed on a different server than your main page. You could land yourself in a lot of hot water if you don't and your site gets cracked or hacked, which is now faily easy to do with all the flash decompilers which are floating around these days. For your own peace of mind you would be better off sending your customers to a separate "Secure, Random Encrypted and Protected" SHTML window that no one can read without the cypher key. Google "HTML Protection", there are quite a few free html encryption programs around which will help you to sleep at night instead of worrying if some script kiddie has run off with all of your customers credit card numbers.