| |
| |
| |
|
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 26 27 28 29 30 31
Comments:
<0> Ok, if I wanted to make a little textarea on one page where it would, on submit, create a little box (using css, I have the cl*** done) with the text added that was typed in, how could I do this with having already, a text/description at the top of the page? Append? <1> still that coughing going around... ;P <0> It would have to change the Homepage? <2> yes <2> i have a virus <0> has there ever been a virus for linux? <1> pianoboy3333: Chowmeined is not Linux... i guess hes/shes a human =) <1> no sorry... that was lame :) <3> yes. there is. <0> I know, I was just asking... <3> er, has. <0> How....? <0> Where could it hide? <4> anyone here knows sockets? they're givving me a headache <5> i only know one type of socket, but to demonstrate, i'd need a women to volunteer for me <0> ??...
<1> anyone who can give me a regex that matches everything between the word nofollow and </table> ? :) <6> nofollow(.*?)</table> <1> thank you! =) <1> unknown modifier t <1> ah... <5> uhm <5> escape the / <1> yeah =P <1> thats why i "aah":ed <1> :) <1> i figured that out... im just a bit tired... its 03.30 am here... cant fall asleep either... =( <7> anyone knows if in a html post theres any way to p*** checkboxes to $_POST even if they are unchecked? <1> why do you want to do that? <7> CopyNinja, be righ back, one sec please <1> sure <7> CopyNinja, im doing a user modification system on php <7> and there are check boxes <7> like is the user admin? <7> and when it loads user, it marks what the user is <7> so after i press modify it saves the changes <1> yeah... well do you store the userdata in a db table? <7> yeah <1> if so, you could just do like: <input type="checkbox" name="is_admin"<?php if ($user['is_admin'] == 1) { print ' checked'; } ?>"> User is admin <1> where $user = the results from the SQL query <7> yeah i know that <7> i mean when im p***ing those values by form <7> post <1> yup <7> so i want it to check if i unmark lie is admin checkbox <7> so if i unmark, get admin options out th euser <8> what are the headers for HTTP/1.1 OK and mime type <9> romulo: you need to check isset($_POST['is_admin']) which will be true if checked and false if unchecked <9> unchecked checkboxes are not posted <9> and therefore isset evaluates to false <7> ok <7> thanks <8> everyone else at command control is dead im just the janitor the life of an astronaut depends on me properly encoding headers for HTTP/1.1 OK and the mime type <7> didnt thinked of that <9> i think that's what you were asking <1> yeah... just do like if ($_POST['is_admin'] == 1) { $is_admin = 1; } else { $is_admin = 0; } <1> or you can use the isset <7> yeah <1> or even better... define a default value for your is_admin column to 0 <7> i tough that now :D <7> do you guys know any alternative to outline css for internet explorer? <7> need to tweak the site for the customer <1> then if $_POST['is_admin'] is not set, it will be 0 in the db column since you have 0 as default value <9> CopyNinja or: $is_admin = isset($POST['is_admin']) ? 1 : 0; <7> theres one problem in that <1> yeah... you can do it in many different ways <7> im doing like you can edit many users at same time <1> why is that a problem? <7> so they are $_POST['delete'] for example <7> and delete is an array <7> wich is delete[username] = ON OR OFF <7> so i need to check all users <7> the best deal i can think is <7> get all users from database, check each permission from each field <9> romulo: still not a problem, you can do a foreach <8> please help me properly encode these headers or bobo the monkey dies! <7> b1n0ry[shopping], yeah doing a foreach right now
<7> for delete[] <9> kill the damn monkey, i don't like bobo anyway <7> it delete the users in the delete array <1> romulo: try to state your question at once instead of hitting enter after every word :) <7> ok <7> =) <7> sorry, if was just to you guys not think i finished =P <8> how do i header() a mime type? <7> it was* <0> Hmmm <0> Can I get some help here? <5> dont ask to ask <0> true <5> yes it is, so continue please <1> depends on what you need help with.. im not in the mood for helping you clean your garage or something... just ask your question instead <0> lol, ok <8> bobo cant breathe! how do i encode the mimetype using header()! what is the format please bobo is all i have left all of command control has p***ed on! <5> pardon me? <1> whos bobo? =P <1> sounds like a cow <8> i need to send a picture of a banana so he knows to push the reentry button! <1> do you need to send bananas to bobo? *confused* <7> Keal, if bobo is going to die cause of you, you ****ed, cause u didnt paid attention to php/html cl***es xD <8> how do i encode a mime type! <0> jiggster: ok, here: http://piano.juicemedia.tv/php/tb.php <8> i am just the janitor! <0> jiggster: does that work for you: <0> s/:/?/ <10> hehe, hour long episode with extra long girls jumping on trampolines <7> Keal, so you ****ed to be the janitor and not cleaning well your mind <7> =P <0> jiggster: did that work? <1> keal: http://www.phpfreaks.com/mimetypes.php <1> header("Content-Type...... <10> ha ha, they're collecting signatures "Stop women's sufferage" and women are signing it <1> ofcourse lol =P <10> women's sufferage = women's right to vote <11> huhu, dumb***es <0> Can I get some help here? I need to know if this page works for you guys: http://piano.juicemedia.tv/php/tb.php <10> they're doing it as a joke on G4, it's funny <11> pianoboy3333: it does <0> ok <0> I see <11> but it's dropping newlines <11> which is the **** <12> YEs it does !!!! <11> you need to replace the \n with <br /> <0> Should I get rid of that? <0> oh <0> no <11> stripping newlines is the work of the devil <12> u need to use nl2br() on the output ! <0> It uses the div tag, so the <br />'s are ther <0> what is <11> oy vey <0> nl2br() ? <0> hold on <11> i mean *inside* the div <11> look at the posts <11> mine was <11> TEST <3> someone ask me something. i know everything right now. <11> but in your page, it's rendered TEST test TEST <11> beause you're just emitting the newlines as newlines, and html ignores newlines <12> Pianoboy: http://uk2.php.net/manual/en/function.nl2br.php <11> you need to convert the newlines in the text to hard breaks <3> dont waste the stoned haxors skills! <0> ... <0> I took the <br /> <3> ask me while i still know the answer. <0> there WAS NO \n! <11> christ
Return to
#php or Go to some related
logs:
#proftpd Funtunfunafu denkyem funafu won afuru
RADEONDRIGetVersion failed to open the DRM skipstone ubuntu #bash driver toshiba e161 #php #math #perl #osdev
|
|