Re: [PHP] Question about form submitting

2007-04-03 Thread Lori Lay
Tijnema ! wrote: On 4/3/07, Mário Gamito [EMAIL PROTECTED] wrote: Hi, Sorry for the lame question, but i didn't find a satisfactory answer in the web. I have this subscribe form (subscribe.php) and on submit i have to check for errors: a) password and password confirmation mismatch; b)

Re: [PHP] Question about form submitting / clarification

2007-04-03 Thread Lori Lay
Mário Gamito wrote: Hi, Of the three items you specify a and b should be handled with Javascript in an onsubmit handler. The error messages would be generated by this handler. Email validity would have to be handled by the web server and your php script, usually by trying the address.

Re: [PHP] foreach question

2007-04-08 Thread Lori Lay
[EMAIL PROTECTED] wrote: both examples do the same thing.. no, ex1 only has 1 br / so outputs like.. item1item2item3item4item5br / Where as I want this.. item1br / item2br / item3br / item4br / item5br / ie a line break after every item. Silly question, perhaps, but are you sure $_POST is

Re: [PHP] foreach question

2007-04-08 Thread Lori Lay
to insert BR's before the line breaks (it doesn't replace them, but that's usually good enough). Lori input type='submit' value=Submit Domain Query /form pbuWhois Results:/u/b/p ?php foreach( $_POST as $key ) { echo $keybr; } ? /body /html - Original Message - From: Lori Lay [EMAIL

Re: [PHP] Need a working SOAP example using SOAP -- PHP is blocking the calls

2007-04-09 Thread Lori Lay
Daevid Vincent wrote: c, could you be having a problem related to the allow_url_fopen ini setting? Now we're talkin! Okay, I made sure that allow_url_fopen and allow_url_include are both on. Verified via phpinfo(); Still no luck. :-\ However, this sparked an idea... I have been

Re: [PHP] mysql if empty

2007-04-09 Thread Lori Lay
[EMAIL PROTECTED] wrote: If I search for something in mysql that returns an empty result I cant get it to return No result found always returns Found even though the recoed does not exist... $sql = SELECT Client FROM booked WHERE Name = 'larry'; $result = mysql_query($sql); if ($result ==

Re: [PHP] Array remove function?

2007-04-10 Thread Lori Lay
Tijnema ! wrote: On 4/10/07, Richard Lynch [EMAIL PROTECTED] wrote: http://php.net/unset That works when you know the key, but will that work when you only know the value? Tijnema Use array_search() and unset()? Lori On Tue, April 10, 2007 2:49 pm, Tijnema ! wrote: Hi, Is there

Re: [PHP] Array remove function?

2007-04-10 Thread Lori Lay
Tijnema ! wrote: On 4/10/07, Daevid Vincent [EMAIL PROTECTED] wrote: OMG. Now that is the best idea. How simple. Guess I learned something new today too! :) -Original Message- From: Lori Lay [mailto:[EMAIL PROTECTED] Use array_search() and unset()? Interesting, I didn't thought

Re: [PHP] mysql if empty

2007-04-10 Thread Lori Lay
Richard Lynch wrote: I am amazed by the sheer number of just plain WRONG answers to this one... Were they all from April 1 or something?... Yes it's unfortunate. I think part of the problem was that several people, including myself, weren't entirely clear on what he was after. When I

Re: [PHP] Retrieving parameters passed from .html...?

2007-04-10 Thread Lori Lay
Anthony J. Maske wrote: See... the second I sent this I took a sip of red-bull and my brain cleared up... $topicID = $_GET['showtopic']; Right? Yes. And if you have a form that uses the POST method, it would be $_POST['element']. Some of the other variables you will eventually need:

Re: [PHP] Evaluating strings...

2007-04-10 Thread Lori Lay
Anthony J. Maske wrote: Hey, Thanks for the quick response on Retrieving parameters... This is another that has me stumped... if (trim($Line) = 'body') { $InBody = true; } elseif (trim($Line) = '/body') { $InBody = false; } $Line is a line from a html

Re: [PHP] SQL Source Control

2007-04-11 Thread Lori Lay
Richard Davey wrote: Hi all, I know a lot of you use various means for PHP source control (CVS, SVN, etc), which is all well and fine, but how do you manage source control on your databases? Say you've got an upgrade to a site, all of the new PHP files are controlled by SVN, so you can

Re: [PHP] UPDATE and redirect

2007-04-11 Thread Lori Lay
Marcelo Wolfgang wrote: and what if $_GET['id'] is something like 1; DROP TABLE tb_emails; ?? SQL injection just waits to happen I think tha tit will be too much of a hacker effort just to kill a table of contact emails, and also he will have to guess ( is there other way ? ) the table

Re: [PHP] UPDATE and redirect

2007-04-11 Thread Lori Lay
Marcelo Wolfgang wrote: and what if $_GET['id'] is something like 1; DROP TABLE tb_emails; ?? SQL injection just waits to happen Something I just thought, he could do a drop table inside an update statement ? because the query is : UPDATE tb_emails SET bol_active = $action WHERE auto_id =

Re: [PHP] CSS vs. Tables OT

2007-04-18 Thread Lori Lay
Wolf wrote: OK, so I like sticking my nose in sometimes... Accessibility Standards and being bobby approved. http://webxact2.watchfire.com/report.asp?t=2#priority3 on http://lonewolf.homelinux.net/ Is just about as good as http://www.csszengarden.com Just the same 1 error :) At least show

Re: [PHP] Find MAC Address in PHP

2007-04-24 Thread Lori Lay
Nathaniel Hall wrote: Davi wrote: I know it can be done because I have a Fedora Core 4 system doing it right now. I didn't have to do anything special for it to work. The system I am working on now is a Fedora Core 6 box. In /var/log/messages I receive: Apr 24 09:33:51 STUAUTH kernel:

Re: [PHP] Re: posting variables to parent frame

2007-04-25 Thread Lori Lay
Zoltán Németh wrote: Incidentally, br/ is an error for html. can you tell me why br/ is an error greets Zoltán Németh br/ is xhtml. It's not an error in xhtml, but might confuse older browsers. I tried it, even with a strict HTML 4.01 doctype and didn't get any errors, but

Re: [PHP] Result problem

2007-04-25 Thread Lori Lay
Dan Shirah wrote: Okay, print_r($result_record) for the query result. But I still don't know why it's only returning the last record of the query instead of all the results. Because it's a cursor and you're not resetting the position. You can't print the entire result set this way - you

Re: [PHP] Re: posting variables to parent frame

2007-04-25 Thread Lori Lay
tedd wrote: At 2:35 PM -0400 4/25/07, Al wrote: Incidentally, br/ is an error for html. Really -- why don't you tell the w3c about that? http://www.w3schools.com/tags/tag_br.asp Actually your example here is wrong. It is unfortunate how they have written this explanation. In xhtml br/br