IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1982.48 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-07-12
Pages: < Prev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Next >
[01:30]<jznj>foo: show us how you include the files
[01:31]<fygasfyan>oreo: hrmm ok
[01:31]<ddsjzzd>i'm in a library and i'm the only white guy here
[01:31]<sxzycn-w7>imsorry how does it feel
[01:32]<sxzycn-w7>:P
[01:32]<fxyfyf>nobody cares
[01:32]<tjufgg>foo: things defined in an include won't be availabe before the include is actually included
[01:32]<jznj>LinkSlice: it can be simple. take the habit of using private. if you need to use one outside the class (or in a child or something), then change to public
[01:32]<jznj>or protected
[01:32]<pjj>Touqen: makes sense
[01:32]<pjj>oreo: hm, let me see how this guy did it
[01:32]<ddsjzzd>vancouver is an asian city now
[01:34]<ddsjzzd>anyone know the google maps channel?
[01:34]<jznj>?
[01:34]<wjlllrws>o.O
[01:35]<tjufgg>imsorry: there's a google maps channel?
[01:35]<tjufgg>I don't really think that would be here considering it isn't an "open" technology.
[01:35]<fxyfyf>google uses slashnet
[01:36]<swydzz>if I have a from and a user enters value in them, and then they continue onto another form, how do I get those values onto the 3rd page? does that question make sense?
[01:36]<fxyfyf>swimrr: hidden form fields or sessions
[01:36]<swydzz>badly worded question
[01:36]<jznj>swimrr: few ways
[01:37]<sxzycn-w7>why make more forms
[01:37]<jznj>you use cookies, sessions, or you serialize the data and write it in the form
[01:37]<swydzz>oreo: what is the last option?
[01:38]<tjufgg>ugh
[01:38]<tjufgg>Why the heck did someone slashdot the firefox 2 beta candidate
[01:38]<swydzz>serialze the date
[01:38]<tjufgg>It's not even an actual beta.
[01:38]<fxyfyf>i think he meant htmlspecialchars instead of serialize
[01:38]<swydzz>LOL
[01:38]<swydzz>i'd just like to put it in the form
[01:39]<jznj>swimrr: you serialize $_POST of the previous form, then base64_encode it, then write it in a hidden input in the form
[01:39]<swydzz>ok, that's way over my head
[01:39]<swydzz>:-(
[01:39]<fxyfyf>it's not
[01:40]<fxyfyf>actually it is a little complicated
[01:40]<jznj>what?!
[01:40]<fxyfyf>consider sessions
[01:40]<swydzz>lol
[01:40]<jznj>are you kidding me?
[01:40]<fxyfyf>heh
[01:40]<jznj>it's far from complex
[01:40]<jznj>php.net/serialize
[01:40]<sxzycn-w7>how can u use a session if he didnt send data yet
[01:40]<jznj>php.net/base64_encode
[01:40]<wjlllrws>!+typing english
[01:40]<lxl-2jv>##PHP does not allow aolbonics (or leetspeak) such as u for you, r for are, ic for i see -- etc and typing like this will result in you being silenced; furthermore, inability to adapt may result in a ban.
[01:40]<fxyfyf>well, assuming four pages, $_POST on each, must "combine" them all
[01:40]<sxzycn-w7>that was meant for me?
[01:40]<jznj>yes
[01:40]<jznj>"u"
[01:40]<sxzycn-w7>sorry
[01:41]<wjlllrws>was well, yes
[01:41]<wjlllrws>*as
[01:41]<sxzycn-w7>i still dont understand what is your problem with it
[01:41]<fxyfyf>not sure what your question means Shrike-16
[01:41]<jznj>Wolfpaws: u shut up! XD
[01:41]<jznj>hahaha
[01:41]<jznj>great vibe in here
[01:41]<wjlllrws>I'm *not* in the mood, ya know
[01:41]<jznj>ah, sorry then
[01:41]<sxzycn-w7>philip well you are talking something about sessions but you didnt send any data to server and didnt execute any script
[01:42]<gn2djoo>oreo: i've now told it to post the id and qty --> header("Location: $domain/products/cart/cart.php?id=$_POST[id]&qty=$_POST[quantity]"); <-- but in the cart page it doesnt display the quantity in the field even when i've said: value="<? $_GET['qty']; ?>"
[01:42]<fxyfyf>Shrike-16: form 1 -> session -> form 2 ->
[01:42]<fxyfyf>not sure what you mean
[01:42]<sxzycn-w7>ah nevermind
[01:42]<jznj>?? why are you using header?
[01:42]<gn2djoo>i felt like it :P
[01:43]<swydzz>see, I have a form and they enter data - so now it goes to a processing page and sends me an email - but I wanted another page in there for more information in some situations
[01:43]<fxyfyf>we know
[01:43]<mjvjrj-rxrg>My host is using PHP as a CGI, but I need to turn on output buffering. Any easy way?
[01:43]<sxzycn-w7>oh
[01:43]<gn2djoo>the only two ways i know are header or the meta refresh
[01:43]<swydzz>then, I wanted an email sent to me - sounds like sessions is the way to go huh?
[01:43]<wjlllrws>value="<? $_GET['qty']; ?>" <-- *cries*
[01:43]<fxyfyf>a multipage form
[01:43]<jznj>lol
[01:43]<swydzz>philip: yes
[01:43]<swydzz>ok, so what is the BEST way to go? sessions?
[01:43]<jznj>nebmo88: what about when people just go see the cart? what do you think would happen?
[01:43]<fxyfyf>best is a funny word
[01:44]<swydzz>LOL
[01:44]<wjlllrws>beast is funnier :)
[01:44]<jznj>swimrr: it depends. if you have a lot of data on each form, i'd say yes. if not, use serialize()
[01:44]<gn2djoo>doh!
[01:44]<swydzz>maybe 20 inputes
[01:44]<jznj>nebmo88: use sessions
[01:45]<jznj>swimrr: what kind? text boxes with long texts? what?
[01:45]<swydzz>yes, mostly text, some button's
[01:45]<fxyfyf>how about you first ask them the conditional question, then show the form with or without additional fields
[01:45]<fxyfyf>KISS
[01:46]<swydzz>ok, here's another question - since I don't know sessions or serialze() - which one is quicker to learn for this project
[01:46]<jznj>swimrr: long text? also, you can just use whatever fits you best. just remember that serialized info could then be unserialized by the user.
[01:46]<swydzz>phillps - that's another way I guess
[01:46]<yvzn2rf>yay for windows :/
[01:46]<fxyfyf>consider using nick completion in irc
[01:46]<jznj>swimrr: both are rather quick, actually
[01:47]<swydzz>oreo: what does it mean that serialzed info could be unserialzed by the user?







