[cart] will create a cart (order file).. so you can do:
On Aug 18, 2014, at 7:36 AM, sgbc cebu <sgbccebu@gmail.com> wrote:
> 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 will 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 process 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 upon= sending the form.
>
> Using <form> I can't pass 'command=3Dadd' because i =dont have Sku data retrieved yet.
>
> Is this possible?
[text]cart=3D[cart][/text]
(then you can pass [cart] in your link)
I=E2=80=99m not 100% clear what you are asking, but I hope that helps.
Donovan> --------------------------------------------------------- =This message is sent to you because you are subscribed to the mailing list =. To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.=us Bug Reporting: support@webdna.u=s
>
> I tried [redirect] inside founditems (of the form search) but its like= that the sku data cannot be pulled.
>
> Database Fields are the following:
>
>=C2=A0 =C2=A0 =C2=A0sku
>=C2=A0 =C2=A0 =C2=A0logname
>=C2=A0 =C2=A0 =C2=A0passname
>=C2=A0 =C2=A0 =C2=A0fullname
>=C2=A0 =C2=A0 =C2=A0rights
>
> Thanks
>
> Jess V.
>
>
> -----------index.tpl-----------
> <form method=3D"POST" action=3D"index.tpl"><=br>> <input type=3D"hidden" name=3D"command" value==3D"add">
> <input type=3D"hidden" name=3D"cart" value=3D&q=uot;[cart]">
> <input type=3D"hidden" name=3D"command" value==3D"Search">
> <input type=3D"hidden" name=3D"template" value==3D"index.tpl">
> <input type=3D"hidden" name=3D"db" value=3D&quo=t;data12.db">
> Username
> <input type=3Dtext name=3D"eqLogNamedatarq">
> Password
> <input type=3Dpassword name=3D"eqPassNamedatarq">
> <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-------
>
>
---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us&g=t;.
To unsubscribe, E-mail to: <talk=-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us
|
[cart] will create a cart (order file).. so you can do:
On Aug 18, 2014, at 7:36 AM, sgbc cebu <sgbccebu@gmail.com> wrote:
> 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 will 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 process 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 upon= sending the form.
>
> Using <form> I can't pass 'command=3Dadd' because i =dont have Sku data retrieved yet.
>
> Is this possible?
[text]cart=3D[cart][/text]
(then you can pass [cart] in your link)
I=E2=80=99m not 100% clear what you are asking, but I hope that helps.
Donovan> --------------------------------------------------------- =This message is sent to you because you are subscribed to the mailing list =. To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.=us Bug Reporting: support@webdna.u=s
>
> I tried [redirect] inside founditems (of the form search) but its like= that the sku data cannot be pulled.
>
> Database Fields are the following:
>
>=C2=A0 =C2=A0 =C2=A0sku
>=C2=A0 =C2=A0 =C2=A0logname
>=C2=A0 =C2=A0 =C2=A0passname
>=C2=A0 =C2=A0 =C2=A0fullname
>=C2=A0 =C2=A0 =C2=A0rights
>
> Thanks
>
> Jess V.
>
>
> -----------index.tpl-----------
> <form method=3D"POST" action=3D"index.tpl"><=br>> <input type=3D"hidden" name=3D"command" value==3D"add">
> <input type=3D"hidden" name=3D"cart" value=3D&q=uot;[cart]">
> <input type=3D"hidden" name=3D"command" value==3D"Search">
> <input type=3D"hidden" name=3D"template" value==3D"index.tpl">
> <input type=3D"hidden" name=3D"db" value=3D&quo=t;data12.db">
> Username
> <input type=3Dtext name=3D"eqLogNamedatarq">
> Password
> <input type=3Dpassword name=3D"eqPassNamedatarq">
> <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-------
>
>
---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us&g=t;.
To unsubscribe, E-mail to: <talk=-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us
DOWNLOAD WEBDNA NOW!
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...