[WebDNA] Cart Login
This WebDNA talk-list message is from 2014
It keeps the original formatting.
numero = 111530
interpreted = N
texte = --089e0129499ec128da0500e69e91Content-Type: text/plain; charset=UTF-8Hello talklistI'd like to mimic login session using cart.I now have INDEX.TPL with a
[founditems][redirect page1.tpl?command=add&cart=[cart]&db=data12.db&sku=[sku]][/founditems]---------end of index.tpl---------089e0129499ec128da0500e69e91Content-Type: text/html; charset=UTF-8Content-Transfer-Encoding: quoted-printable
Hello talklist
I'd like to mimic login session =using cart.
I now have INDEX.TPL with a <form> :
1. to =search userid & password at the same time
2. that when match wi=ll reveal a link containing an sku
=C2=A0=C2=A0 (page1.tpl?command=3Dadd&cart=3D[cart]&sku=3D[sku]) to= create
=C2=A0=C2=A0 a cart inside the shopping folder.
This pro=cess will contain 2 clicks: one in form upon search & 2nd for the link.=
But I wish to create the cart # in the shoppingcart folder, right u=pon sending the form.
Using <form> I can't pass 'command=3Dadd' because i d=ont have Sku data retrieved yet.
Is this possible?
I tried [r=edirect] inside founditems (of the form search) but its like that the sku d=ata cannot be pulled.
Database Fields are the following:
=C2=A0=C2=A0=C2=A0 sku=C2=A0==C2=A0=C2=A0
=C2=A0=C2=A0=C2=A0 logname
=C2=A0=C2=A0=C2=A0 passname<=br>=C2=A0=C2=A0=C2=A0 fullname
=C2=A0=C2=A0=C2=A0 rights
Thanks
Jess V.
-----------index.tpl-----------
<form method==3D"POST" action=3D"index.tpl">
<input type=3D"hidden" name=3D"command" value=3D&quo=t;add">
<input type=3D"hidden" name=3D"cart&qu=ot; value=3D"[cart]">
<input type=3D"hidden" n=ame=3D"command" value=3D"Search">
<input type=3D"hidden" name=3D"template" value=3D&qu=ot;index.tpl">
<input type=3D"hidden" name=3D"=db" value=3D"data12.db">
Username
<input type=3D=text name=3D"eqLogNamedatarq">
Password
<input type=3Dpassword name=3D"eqPassNamedatarq"&g=t;
<input type=3D"submit" value=3D"Login">
=</form>
[founditems]
[redirect page1.tpl?command=3Dadd&=;cart=3D[cart]&db=3Ddata12.db&sku=3D[sku]]
[/founditems]
---------end of index.tpl-------
--089e0129499ec128da0500e69e91--
Associated Messages, from the most recent to the oldest:
--089e0129499ec128da0500e69e91Content-Type: text/plain; charset=UTF-8Hello talklistI'd like to mimic login session using cart.I now have INDEX.TPL with a
[founditems][redirect page1.tpl?command=add&cart=
[cart]&db=data12.db&sku=[sku]][/founditems]---------end of index.tpl---------089e0129499ec128da0500e69e91Content-Type: text/html; charset=UTF-8Content-Transfer-Encoding: quoted-printable
Hello talklist
I'd like to mimic login session =using cart.
I now have INDEX.TPL with a <form> :
1. to =search userid & password at the same time
2. that when match wi=ll reveal a link containing an sku
=C2=A0=C2=A0 (page1.tpl?command=3Dadd&cart=3D
[cart]&sku=3D[sku]) to= create
=C2=A0=C2=A0 a cart inside the shopping folder.
This pro=cess will contain 2 clicks: one in form upon search & 2nd for the link.=
But I wish to create the cart # in the shoppingcart folder, right u=pon sending the form.
Using <form> I can't pass 'command=3Dadd' because i d=ont have Sku data retrieved yet.
Is this possible?
I tried [r=edirect] inside founditems (of the form search) but its like that the sku d=ata cannot be pulled.
Database Fields are the following:
=C2=A0=C2=A0=C2=A0 sku=C2=A0==C2=A0=C2=A0
=C2=A0=C2=A0=C2=A0 logname
=C2=A0=C2=A0=C2=A0 passname<=br>=C2=A0=C2=A0=C2=A0 fullname
=C2=A0=C2=A0=C2=A0 rights
Thanks
Jess V.
-----------index.tpl-----------
<form method==3D"POST" action=3D"index.tpl">
<input type=3D"hidden" name=3D"command" value=3D&quo=t;add">
<input type=3D"hidden" name=3D"cart&qu=ot; value=3D"[cart]">
<input type=3D"hidden" n=ame=3D"command" value=3D"Search">
<input type=3D"hidden" name=3D"template" value=3D&qu=ot;index.tpl">
<input type=3D"hidden" name=3D"=db" value=3D"data12.db">
Username
<input type=3D=text name=3D"eqLogNamedatarq">
Password
<input type=3Dpassword name=3D"eqPassNamedatarq"&g=t;
<input type=3D"submit" value=3D"Login">
=</form>
[founditems]
[redirect page1.tpl?command=3Dadd&=;cart=3D[cart]&db=3Ddata12.db&sku=3D[sku]]
[/founditems]
---------end of index.tpl-------
--089e0129499ec128da0500e69e91--
sgbc cebu
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
cookies and [returnraw] (1997)
Unexpected error (1997)
show if date < expiry date (2002)
WebCatalog NT (1996)
WebCat2b13MacPlugIn - more [date] problems (1997)
RE: Webcat 2.0.1b1 bug with IE 3.01/4.0p1 (1997)
MacAuthorize and WebMerchant (1997)
Emailer Set Up (1997)
Limit on nested [ShowIf]'s? (1997)
verify email address (1998)
Adding order weight (1999)
Shipcost formula (2004)
So many lookers, hey smith micro (2003)
Problem with CC problem ? (1997)
WebDNA deletes major DB data big time (2004)
[Sum] function? (1997)
NT [delete] - duh nevermind. (1998)
[table] strange behaviour REAL solution (2003)
ReturnRaw context (1997)
Problem 1 of 2 (2000)