| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11
Comments:
<0> but i prefer the one that returns $a + 1; <1> salve a tutti gente <1> posso chiedervi <1> una cosa <1> su un problema <1> vi prego mi serve urgente <2> ?? <2> SPAM <1> ho tre text e due men <1> in una pagina <1> selezionando una voce del primo men <1> si aggiorna la stessa pagina <1> cambiando i valori del secondo men <1> per in questo aggiornamento perdo i dati <1> che scrivo nelle tre text <1> come faccio a memorizzarle
<1> per poi inviarl tutte le informazioni ad un'altra pagina <3> pagina? *****/vagina? <3> either way, stfu.. <4> Hi there. I would like some ***istance with working with a string from my database. in the while loop for printing out the query data I have $row[title] I would like to see if $row[title] has ". The" at the end of the string and if so, move it to the front of the string loosing the ", " How can I do this? <1> c' qualcuno che pu aiutarmi <3> GAHHHHHH <3> if(!(($_POST['submit'] && $_POST['delOpt']) && ($_POST['verified'] && $_POST['category']))) { <3> wtfyote <3> if not var1 and var2 or var3 and var4 then **** off <3> but it's not teh work <3> 2bits <3> if(!(($_POST['submit'] && $_POST['delOpt']) && ($_POST['verified'] && $_POST['category']))) { <3> if not var1 and var2 or var3 and var4 then **** off <3> is what im trying to do <3> but it's not teh work <0> aroo? <0> what form data are you working with that you're directly type juggling them to booleans? <3> ? <3> textboxes and buttons <0> ok.. first of all, you just described a "not and or and" but have no or in there <3> I tried that too <3> same results <0> that's not quite what i meant <0> what are the possible values of $_POST['submit']? <3> nothing <3> that's the button that's clicked <0> so it's ALWAYS false? <3> probably <0> then the entire first half of your condition is meaningless. and that i doubt <0> also, it's just not true <3> thing is, it worked fine before I added the second half <0> if it's the submit button, for it to even be sent, it would need a name. and surely there's an ***ociated value ***igned to it otherwise there'd be no text on the button <0> i'm not convinced you're fully aware of what the first half was doing <0> what are the possible values for 'delOpt'? <0> and 'verified' <0> and 'category' <3> delopt is an integer <3> category is an integer, and verified = true <0> is verified a checkbox? <3> hidden field <0> so it's either true or false? true or not there? <3> yeah <0> mmm i was asking which <3> true or not there <0> ok.. and for 'category' and 'delopt', you say they're integers. can they be 0? <3> not necessarily, it's the id of the row in the database <0> then i'm afraid i dont much see what the point of most of that conditional is <0> can the form be submitted without those values being sent? <3> no <0> most, if not ALL of those should be isset tests <0> so if the form is submitted, 'delOpt' and 'category' should DEFINATELY have also been sent? <0> and with non-zero values? <0> so i suppose the question is, are you trying to error trap an improper form submittion or are you trying to trap valid program logic? <3> see, at first it sends just delopt and pulls the info and checks to see if there rows ***ociated with the id in another table and if so, shows a warning. then they click continue, which is where 'category' and 'verified' come into play <3> but if there's no ***ociated rows in the other table, then it's just the id <0> same script though? <3> yes <0> so you're trying to confirm a wish to delete an option that has dependants in the database? <3> yeah <0> and which course of action does the "then" part of this if statement perform?
<3> just shows an error <0> what error? <3> which shouldnt be being shown. <0> huh? <3> www.ansimation.net/ansi/admin/ <3> services offered / service categories <3> then try and delete "category to be deleted" <3> there's no textfield though I just copied the error section from another page instead of writing it all over again <0> Textfield is blank <3> yeah <0> pastebin the script you're working with then <0> also.. have you considered just putting a delete button in with the cancel/update? <0> or having checkboxes next to each category and a page wide delete button? <3> it's ugly <3> yeah I have, but there's so much space not being filled kinda just wanted to take up some realestate I guess <0> heh <3> http://pastebin.ca/318254 <0> well that form that submits to service_category_delete.php definately does NOT have a $_POST['submit']... ever <3> no, but there is from service_categories.php <0> you have multiple forms that lead to service_category_delete.php ? <3> which is the combo box <0> i'm referring to that combo box <3> the combo box on the delete page sends it there, and then if you click continue on the warning, it sends it back <0> <input type="submit" cl***="submit" value=""> <0> is what i see in the source <0> if a form element has no name attribute, it's not sent. period <0> i never got a "warning" <3> well aint that about a bitch <0> ignore that for a moment <0> what you pastebin'd... was that service_categories.php ? <0> er <3> no <0> nm <0> was that service_category_delete.php ? <3> yes <0> ok. focusing only on that combo box in service_categories... <0> you have exactly one form element that would be sent <0> delOpt <0> $_POST would only ever have that one key/value pair. 'delOpt'=> 'id of the category' <3> yeah <0> do you intend to do any sort of error checking on service_category_delete? <0> to the effect of.. checking if a form was even submitted? or are you going to ***ume that if the page is requested, it was done through via a valid form? <3> that's what I was doing with the post[submit] <3> but I forgot to name it <0> that's not what that does <3> heh <0> oh <0> ok <0> well you have to do more than name it <0> i ***ume you have a good reason for making the value blank... i presume you're using css to style it's appearance <3> yeah, it's an image <0> but that would also mean that while $_POST['submit'] would be "set" (if it's so named in the form), it's value would be "" and therefore false <0> even if it's there <0> so to test IF the form has been submitted, you'll want to use isset($_POST['submit']) instead <0> then the value is moot <3> it should be now, I added the name to the submit button <0> i still dont see it <0> did you upload the change? <3> doing it now <3> done <0> ok good <0> for clarity in the script, i'd suggest aliasing some of these boolean results <0> like $form_submitted = isset($_POST['submit']); <3> alright <0> is there a reason you're using onsubmit="service_categories(); return false;" for your "Cancel" form? <3> no not really <0> there are plenty of more elegant ways to do that <5> need help pls <3> yeah, like just setting the action to the url <3> heh <5> Notice: Undefined variable: isset in c:\program files\easyphp1-8\www\test.php on line 14 <0> jM^: isset and not $isset ? <3> don't know wtf I was thinking when I first started it but I just kept going with it. it worked... <6> opss
Return to
#php or Go to some related
logs:
#linux #india #kl kaunder malaysia #allnitecafe #kl #allnitecafe #india genting hooker #kl
|
|