@# 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 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25



Comments:

<0> myki: DON't TURN THEM ON
<1> Drakas: why?
<0> they're bad..
<1> I can't run scripts using post or get $
<2> myki: Rewrite your code.
<0> =}]]
<0> myki: your scripts are so insecure if you are using register globals
<3> myki: Yes you can... you should use $_GET and $_POST. register_globals is bad and shouldn't be turned on if it can be avoided.
<4> http://www.kaboodle.com/zd/setup/setuphelp-firefox.html
<4> errr
<2> myki: http://id.php.net/manual/en/security.globals.php
<4> Stupid paste function.
<5> hehe
<5> teh[sic] paste lottery
<1> Ok, here's my code: http://pastebin.com/622896. Each time I try to type sth in the form, I get "the entry is empty". When I've been using php on linux it worked.
<6> hello, the element: <input type="file" ... />, how can i somehow store the file-name in that element (the local path to the file)?



<7> what?
<6> I have a "preview"-option on a post where an image can be uploaded,.
<1> You told that I should fix my code. So where's the point in that:
<1> http://pastebin.com/622896 ?
<7> mm2000_laptop, so you want to use the file sent on the local server or client side?
<6> Hmm... hard to explain the problem really... I shall try again.
<6> For instance i can do this: <input type="text" name="yadda" value="{argument}" />
<6> {argument} is a var to the templateengine to set
<6> It works fine with the preview-option.
<6> But this does not:
<6> <input type="file" name="yada" value="{local_file_name}" />
<6> the value shows up as the file i want to upload.
<6> BUT.
<8> BUT
<6> When i do a preview, the textfield on the <input type="file" ... /> (there is one textfield and ont button: browse) is empty
<6> Do you get it?
<0> mm2000_laptop: yes
<0> mm2000_laptop: you need to use javascript for that sort of thing probably.
<6> So... is there anything that i can do?
<0> when user clicks submit button, set a hiden value of something like localname to the value of the file input
<0> but i am not sure if that will work
<9> Why would you want to set the name of a file to upload?
<0> btw, afaik what you are doing could be made easier and less bandwidth consuming: upload that file to temp directory and save it's name inside the form you are previewing.
<6> The problem is to set the textfield on that element... I really dont know if it works at all... :(
<6> input type="file" has some sort of safty-thing if i dont mis-remember.
<0> check w3
<6> ok. thx
<0> oh dear dear :] gd is fun
<0> just made a img_replace tool for replacing one colour in image with another
<10> gd is fun
<0> now working on the same thing but that it would create a gradient =]
<0> http://drakas.sytes.net/imggen.php ;]
<10> http://www.sproutworks.com/cms.php
<10> my gradient generator
<0> http://drakas.sytes.net/gra.php :]
<8> fight fight
<0> nice :]
<0> sproutworks: i still dont understand the purpose of "PHP source code viewer" :)) I expected some kind of javascript php navigation tool. all you done is display using highlight_file:]
<10> it lets people check out some of my code
<10> my html parser is the only thing in there at the moment
<0> what i am doing now is agradient replacer ;D
<0> doesnt seem to like white :/
<10> what do you mean by replacer?
<0> for example, replaces from plain green into a nice gradient
<10> like green-screening?
<0> ?
<0> sweet - i've just screwd it up
<0> bye :] no need to chat while workig
<10> i can send you some of my gradient code if you want
<0> NO!
<0> your thing is a generator
<0> mine is a pre-processor for images
<10> it does x and y axis gradients with blending using lists of any number of colors
<0> ...
<10> I could easily adapt my generator for editing images
<0> let's say an example -> you've got an image with green square in it. I am trying to turn that green square into a nice gradient square
<0> im gone
<10> i would scan the image with imagegetpixel to determine the extents of a bounding box for the green square
<6> i found this: http://www.blooberry.com/indexdot/html/tagpages/i/inputfile.htm
<6> input type="file" should support value...
<6> But i cant make it work properly



<10> Drakas: http://www.sproutworks.com/displaysource.php?filename=gradient2.php
<11> So? That's not ##php issue. try #web
<12> hi im including two pages in my site with php. is there a way to make those two communicate?
<13> mm2000: no, it shouldnt
<12> like one contains rollover buttons for a menu. the other contains content
<12> what id like to do is make it so the user can click a rollover button and itll change the content to be whatever page
<12> heres what my main page looks like right now:
<12> http://www.itmorr.com/csPage/testPage.php
<12> i realize the whole page needs major work already but for now id like to make it so the rollovers change the content
<12> all i did with that main page is included two pages -- one page contains a menu and the other is home.html, which just says welcome to the page
<11> tobmoox: How is that a PHP queston
<11> ?
<12> so what id like is if the user clicks a button on the menu, it changes home.html to something else
<10> you could use ajax to get the page that is php, and sessions to let the buttons and the content communicate
<0> sproutworks: nice :]
<12> i havent used ajax yet; is there any easier way?
<0> ok, im going for a run now =]
<10> okay
<12> wow sorry maybe i just closed #php
<12> back to the question..so how do you make two pages that are included using php to communicate?
<11> "communicate" on what level?
<10> do you want the whole page to load when viewing that, or do you mean it fetchs the content section separately
<12> what id like is this:
<12> when the user clicks a button, it changes a page that was included using php
<12> the button is on a seperate page which was also included
<10> so the whole page loads each time?
<12> yeah
<12> whenever the user clicks a rollover it changes the included page
<12> http://itmorr.com/csPage/testPage.php
<14> make a page have frameset
<11> That's dumb
<14> then make a fixed top
<14> you dont need to use php
<12> fixed top?
<10> when you include a file, you include it's variables, so your included files can use the rest of the page's variables
<12> oh
<12> so if i define some variables in the main page
<12> then i can access those from an included page?
<10> many ways
<10> globals, session, p*** in arrays of variables to the included pages
<12> great would that allow me to change an included page without a session?
<10> you should make a layout cl*** that handles this
<10> for all my content I use my toplevelpage and layout cl***es to set up that stuff
<12> how about this:
<12> whenever the user clicks a button, it sends them to a new page
<12> the new page contains the same layout
<12> or would that be stupid
<12> nvm that idea ****s
<15> var_dump (mysql_fetch_row($result)); echo "<br><Br>"; there are seven items its supposed to be looping through, it stops at the 4th item for whatever reason: please see: http://www.reptile-breeder.net/bpanel/newindex.php?BREEDER_ID=1#
<11> omnipresence: Your SQL is probably wrong
<15> no it pulls all 7 records just fine
<15> if i take the var dump out
<11> pastebin the code, please
<15> would an empty cell in my table cause that?
<15> ok
<16> \join #technotux
<11> damn
<15> http://pastebin.com/622931
<11> omnipresence: I _hope_ you realise, that mysql_fetch_row ALSO effencts the DB result.
<15> i was hoping to stuff that row into an array
<15> to minimize the could it took to put everything into sessions
<11> $arr[] = $row;
<11> s/effencts/affects
<15> damn that simple huh
<15> thank you sir
<11> ew. "sir" :/
<15> term of endearment
<15> juts trying to show my appreciation
<4> Call him babe.
<17> Hello, what is the best way to extract data from mysql databases. mysql_fetch_array or mysql_fetch_object ?
<15> unless of course you're a misses, in which case i apologize
<4> oriceon: Depends on what you are gonna do with the data.
<11> me? A misses? I so hope not! :)
<4> oriceon: look at mysql_fetch_***oc and mysql_fetch_row also.


Name:

Comments:

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






Return to #php
or
Go to some related logs:

apsx2
famous synonmys
skins2 interface error: cannot initialize OSFactory
#debian
gentoo gcc 4.1 error compile open office
#lisp
quiznos, molester
#css
GDM already running
tvtime fglrx green



Home  |  disclaimer  |  contact  |  submit quotes