@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10



Comments:

<0> well you need the previous result of the number subtracted from 100
<0> so that when you click the button
<0> it'll get a new random number and take it off the previous number
<1> yeah but u dont to keep track of everything shown at my url ?
<1> just the last result.. thats it right?
<0> correct
<1> k
<1> hmm actually, you wouldnt even need php for that
<1> u could do it with javascript :P
<0> heh
<1> but ill try to use php
<0> i'm sure, but I want it to stay php
<1> k
<0> i see it as
<1> more complicated though
<0> the random result gets put into a $_GET



<1> cuz u wanna submit a value as a param
<1> no.. the value needs to
<1> th random doesnt
<1> and i'd use _POST
<1> u coding an rpg? lol
<0> sorta
<1> hehe
<1> check dis out
<1> http://littlenemo.is.dreaming.org/laguna
<1> awww
<1> wait up
<1> ahh **** dat, mssql is down hehe
<0> haha
<1> well ill start it
<2> hm I should really get my p***port..
<1> there
<1> refresh the page
<1> i coded that in an evening.. its not much.. but i should continue it someday
<0> heh
<1> the picture is an image map
<0> yah i saw
<1> i coded it up to the fight and then stopped heh
<1> (bridge)
<0> i keep missing
<1> yeah lol
<1> its hardcoded
<1> haha
<0> oh
<0> haha
<1> hehe i was too lazy to continue from there on
<1> ok.. back to your stuff
<0> well once I get this figured out I can move on again
<1> yeah
<1> http://littlenemo.is.dreaming.org/rand
<1> refresh
<0> yah i'm seeing
<1> not bad?
<0> yah works
<1> im adding comment
<1> comments
<0> ok
<1> there ya go
<0> holy crap
<1> first example is in the same page, commented out
<1> what?
<0> haha
<0> just spaced out
<1> what is?
<0> the code thats all
<1> heh its clearer that way
<1> its my coding style ;)
<0> you can just put the numbers you want to random into rand()?
<1> yup
<0> if they are sequential I'm ***uming
<1> what do you mean?
<0> well
<0> oh n/m
<0> had a brain fart
<1> its just a min / max
<1> hehehe
<0> ya



<0> ok
<0> heres a question
<0> I notice some people do ".$variable."
<0> and some do {$variable}
<0> whats the diff?
<1> hmm..
<1> echo "test" . $blah . "blahblahbla";
<1> that is what i use to concatenate
<0> thats a really big *** word for my brain at 2am
<1> hmm
<1> like
<1> $val=5;
<0> oh link
<1> echo "the value is: " . $val;
<3> "blah".var is good, "blah$var" is bad
<1> will write
<1> the value is: 5
<1> no
<1> u need the $
<0> so why not do ... echo "The value is: {$val}";
<0> ?
<1> maybe u can do that too.. i never did that
<0> I've found that works and was curious if it was sloppy or not
<1> every other language (or almost) will keep variables out of strings.. so ive been used to do that too
<0> like I can do <a href='blah.php?blah={$var}'>
<0> and it'll work too
<1> hmm i didnt know
<1> i personally prefer to keep out of strings but do as you want
<1> most languages will do "STRING" . $var (or + or &)
<1> or strCat()
<0> hmmm
<0> so in my example with the a href
<0> how would you do it there?
<0> ?blah=".$var."?
<1> <a href="blah.php?blah=" . $var . ">"
<1> hmm
<1> no
<0> is the space mandatory?
<1> echo "<a href='blah.php?blah=" . $var . "'>whatever</a>";
<1> there
<0> ya
<1> and no its not
<0> ok
<1> i prefer to use " " as much as possible and to have the ' ' inside
<0> yah in your echos?
<1> but im not sure that is the best way to do it, it just works for me
<1> you could also use \" \" inside
<0> yah
<0> i think thats ugly
<1> yeah but sometimes u dont really have much choice
<0> another question .. why do your container tasg look like <input />
<0> does that open and close them?
<1> yeah
<1> its only mandatory if u wanna follow by the book html norms whatever
<0> I've found out lately that some of my tags I use have become deprecated :P
<1> hehehe
<0> Form which submits page to itself
<0> what do you mean by that
<1> yeah well..
<1> instead of having a form which submits to a process page and which goes back to the form page for display
<0> OH
<0> i see ok
<1> u just put a form in a page (index.php) which submit a value to itself
<0> ya
<1> if it doesnt get the param, then its a first load / refresh
<0> if you left out "page" i would have understood
<1> otherwise, it gets the param and processes it
<1> okay heh
<1> sorry.. its the french brain translating to english before keystroking.. its 5 am y'know :)
<0> ya
<1> so how d'you like my coding? very stylish huh? :D
<0> heh
<0> ya
<0> alue exists and was submitted through a "form post".


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

bootdisk iso fdisk
worlds largest town
#AllNiteCafe
esti atat de frumoasa cand razi
#MissKitten
#linux
#AllNiteCafe
#php
#MissKitten
#windows



Home  |  disclaimer  |  contact  |  submit quotes