[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:
[WebDNA] test (2010)
hidden databases (2000)
Search for dates greater than [date] (1997)
WebCat2.0 [format thousands .0f] no go (1997)
test sorry (2001)
Running 2 two WebCatalog.acgi's (1996)
Another issue with [Date format] (1998)
How old am I? (2004)
WebCat, sudo and ImageMagick (2002)
Grant, please help me ... (1997)
Bug Report, maybe (1997)
FM PRO Compatibility Issue - Single Database w/o Conversions (1997)
Flag checking (2000)
Major bug report on rootbeer (1997)
Strange intermittent WebDNA problems Workaround (2008)
[shownext] help (2002)
can WC render sites out? (1997)
HELP WITH DATES (1997)
Questions To Answer (1997)
[WebDNA] Processor Maxing out (2010)