RE: [PHP] Question: Repopulating form parameters

2004-12-13 Thread Stuart Felenstein
--- Ford, Mike [EMAIL PROTECTED] wrote: If in doubt, print it out (TM) echo '$Indbr', $Indbr, $Ind; $Ind '1','2','3','4' '1','2','3','4' Funny, they are both the same. Both? There are three things printed out there, so both cannot be right. 2 of the 3 can be the

Re: [PHP] Question: Repopulating form parameters

2004-12-13 Thread Stuart Felenstein
--- David Robley [EMAIL PROTECTED] wrote: On Mon, 13 Dec 2004 00:56, Stuart Felenstein wrote: --- Jason Wong [EMAIL PROTECTED] wrote: If in doubt, print it out (TM) echo '$Indbr', $Indbr, $Ind; $Ind '1','2','3','4' '1','2','3','4' Funny, they are both the

Re: [PHP] Question: Repopulating form parameters

2004-12-13 Thread Stuart Felenstein
--- Jason Wong [EMAIL PROTECTED] wrote: Here is just another variation of my multiple select list. option value=?php echo $rsinds-Fields('CareerIDs')??php if ($rsinds-Fields('CareerIDs')== 5) {echo SELECTED;} ??php echo $rsinds-Fields('CareerCategories')?/option Here I was

Re: [PHP] Question: Repopulating form parameters

2004-12-13 Thread Jason Wong
On Monday 13 December 2004 22:59, Ford, Mike wrote: The issue was the difference between double and single quotes. Yes -- but you said they are both the same, when there were *three* things being displayed, and (a) you can't have both of three (b) only two of the three were the same, and

RE: [PHP] Question: Repopulating form parameters

2004-12-13 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 13 December 2004 14:00, Stuart Felenstein wrote: --- Ford, Mike [EMAIL PROTECTED] wrote: If in doubt, print it out (TM) echo '$Indbr', $Indbr, $Ind;

Re: [PHP] Question: Repopulating form parameters

2004-12-13 Thread David Robley
On Tue, 14 Dec 2004 02:33, Jason Wong wrote: On Monday 13 December 2004 22:59, Ford, Mike wrote: The issue was the difference between double and single quotes. Yes -- but you said they are both the same, when there were *three* things being displayed, and (a) you can't have both of three

Re: [PHP] Question: Repopulating form parameters

2004-12-12 Thread Jason Wong
On Sunday 12 December 2004 18:15, Stuart Felenstein wrote: Still stuck on this one. I know I'm doing something wrong and wouldn't mind some correction: Did you mockup some test HTML in a wysisyg editor as suggested? Code now: if (count($Ind) 0 AND is_array($Ind)) { $Ind =

Re: [PHP] Question: Repopulating form parameters

2004-12-12 Thread Stuart Felenstein
--- Jason Wong [EMAIL PROTECTED] wrote: Close but no cigar. Since $Ind is already imploded my thinking is it need not be incremented in the echo statement ? You tell me, print_r() and var_dump() it before you use it and decide whether it is correct. One final thing: '$Ind' is

Re: [PHP] Question: Repopulating form parameters

2004-12-12 Thread Stuart Felenstein
--- Jason Wong [EMAIL PROTECTED] wrote: I'm pretty sure I need to loop through the $_Get of the array. Not sure , and haven't found anything that shows this. Yes, you need to reference $_GET to see whether an option was selected and change the echo above accordingly. Still

Re: [PHP] Question: Repopulating form parameters

2004-12-12 Thread Stuart Felenstein
--- Jason Wong [EMAIL PROTECTED] wrote: On Sunday 12 December 2004 18:15, Stuart Felenstein wrote: Still stuck on this one. I know I'm doing something wrong and wouldn't mind some correction: Did you mockup some test HTML in a wysisyg editor as suggested? Yep like this : select

Re: [PHP] Question: Repopulating form parameters

2004-12-12 Thread Jason Wong
On Sunday 12 December 2004 20:18, Stuart Felenstein wrote: If I choose 1, 2 , 3 then print_r($Ind); returns '1','2','3' This looks okay. You *should* know what it should look like so I'll take your word for it. I could not find a difference with '$Ind', or $Ind, except I would think

Re: [PHP] Question: Repopulating form parameters

2004-12-12 Thread David Robley
On Mon, 13 Dec 2004 00:56, Stuart Felenstein wrote: --- Jason Wong [EMAIL PROTECTED] wrote: If in doubt, print it out (TM) echo '$Indbr', $Indbr, $Ind; $Ind '1','2','3','4' '1','2','3','4' Funny, they are both the same. I think you are missing the point Jason was trying to

Re: [PHP] Question: Repopulating form parameters

2004-12-12 Thread Stuart Felenstein
--- Jason Wong [EMAIL PROTECTED] wrote: If in doubt, print it out (TM) echo '$Indbr', $Indbr, $Ind; $Ind '1','2','3','4' '1','2','3','4' Funny, they are both the same. Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question: Repopulating form parameters

2004-12-11 Thread Stuart Felenstein
--- [EMAIL PROTECTED] wrote: you (just) need to mark the previously chosen items as selected in the repopulated list. the highlighting part is a basic html/form issue. i.e., if you have questions on this you should look at how, on a simple (html-only) form, an item on a list is marked

Re: [PHP] Question: Repopulating form parameters

2004-12-11 Thread Jason Wong
On Saturday 11 December 2004 20:46, Stuart Felenstein wrote: --- [EMAIL PROTECTED] wrote: you (just) need to mark the previously chosen items as selected in the repopulated list. the highlighting part is a basic html/form issue. i.e., if you have questions on this you should look at

RE: [PHP] Question: urldecode

2004-12-09 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -Original Message- From: Stuart Felenstein [mailto:[EMAIL PROTECTED] Sent: 09 December 2004 11:52 In my search page, the url returned comes back with the ..err I

RE: [PHP] Question: urldecode

2004-12-09 Thread Stuart Felenstein
--- Ford, Mike [EMAIL PROTECTED] wrote: Are you seeing the URL-encoded version *only* in your browser's Address/Location bar? If so, that's perfectly normal and nothing to worry about -- it should be automatically decoded by the Web server before being passed to PHP. If you're seeing

RE: [PHP] Question: urldecode

2004-12-09 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -Original Message- From: Stuart Felenstein [mailto:[EMAIL PROTECTED] Sent: 09 December 2004 13:38 --- Ford, Mike [EMAIL PROTECTED] wrote: Are you seeing the

Re: [PHP] Question: urldecode

2004-12-09 Thread Richard Lynch
Stuart Felenstein wrote: In my search page, the url returned comes back with the ..err I forget what it's called, but query string looks like this: %5B%5D=3. I think the %5B and 5D should be []. What I think is needed is rawurldecode. I've looked through my code and think it belongs

Re: [PHP] Question: Search from , text fields

2004-11-30 Thread Greg Donald
On Tue, 30 Nov 2004 09:22:11 -0800 (PST), Stuart Felenstein [EMAIL PROTECTED] wrote: I'm building a search form where users can search for people by zip code. Trying to get an opinion here. Well maybe more then just one. Should I have seperate textfields, say (arbitrary) 3 , where they can

Re: [PHP] Question regarding constructors and child classes

2004-11-17 Thread Jordi Canals
Hi, Comment inline On Wed, 17 Nov 2004 20:19:01 -0600, Brent Clements [EMAIL PROTECTED] wrote: ?php class foo { function foo () { echo constructed!; } } class childFoo extends foo { function childFoo() { // here you

Re: [PHP] Question on query string

2004-11-16 Thread David Bevan
On November 16, 2004 09:06, Stuart Felenstein wrote: Why is each value preceeded by the %5B%5D ? I think the % is for wildcards, but for the life of me can't figure out what 5B and 5D stand for. Ind%5B%5D=2Ind%5B%5D=3Ind%5B%5D=4Ind%5B%5D=5.. Stuart, The % is an escape character to

Re: [PHP] Question on query string

2004-11-16 Thread Richard Davey
Hello Stuart, Tuesday, November 16, 2004, 2:06:03 PM, you wrote: SF Why is each value preceeded by the %5B%5D ? I think the % is for SF wildcards, but for the life of me can't figure out what 5B and 5D SF stand for. SF Ind%5B%5D=2Ind%5B%5D=3Ind%5B%5D=4Ind%5B%5D=5.. They're hex values.

Re: [PHP] Question on query string

2004-11-16 Thread Stuart Felenstein
--- Richard Davey [EMAIL PROTECTED] wrote: Use urldecode() to get them back to normal again. Changed the form action line to this: action=searchresults.php?Ind=?php echo urldecode(((isset($_POST[Ind[]]))?$_POST[Ind[]]:)) Still getting this: ?Ind%5B%5D=1Ind%5B%5D=2Ind%5B%5D=3 I'm under

RE: [PHP] Question on query string

2004-11-16 Thread Chris W. Parker
Stuart Felenstein mailto:[EMAIL PROTECTED] on Tuesday, November 16, 2004 8:28 AM said: --- Richard Davey [EMAIL PROTECTED] wrote: Use urldecode() to get them back to normal again. [snip] Or should I do a $_GET['Ind'] = urlencode('Ind') on searchresults.php ? ?php // this is what

Re: [PHP] Question on query string

2004-11-16 Thread Jason Wong
On Wednesday 17 November 2004 00:28, Stuart Felenstein wrote: --- Richard Davey [EMAIL PROTECTED] wrote: Use urldecode() to get them back to normal again. Changed the form action line to this: action=searchresults.php?Ind=?php echo urldecode(((isset($_POST[Ind[]]))?$_POST[Ind[]]:)) When

RE: [PHP] Question on query string

2004-11-16 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 16 November 2004 16:28, Stuart Felenstein wrote: --- Richard Davey [EMAIL PROTECTED] wrote: Use urldecode() to get them back to normal again. Changed the form action

RE: [PHP] Question on query string

2004-11-16 Thread Stuart Felenstein
--- Ford, Mike [EMAIL PROTECTED] wrote: The main problem with the above snippet that I can see is that there's very unlikely to be such a thing as $_POST[Ind[]] -- form fields with name=Ind[] will turn up as an array in $_POST[Ind] ($_POST[Ind][0], $_POST[Ind][1], etc.). But the whole

Re: [PHP] Question on query string

2004-11-16 Thread Stuart Felenstein
--- Jason Wong [EMAIL PROTECTED] wrote: When you're building a query string then (in general) there is no need for urldecode(). On the contrary you want to use urlencode(), this is done on the *value* of the individual parameters. And about this: $_POST[Ind[]], it's obvious you

RE: [PHP] Question on query string

2004-11-16 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -Original Message- From: Stuart Felenstein To: [EMAIL PROTECTED] Sent: 16/11/04 21:35 Subject: Re: [PHP] Question on query string For searchresults.php (right below

RE: [PHP] Question on query string

2004-11-16 Thread Stuart Felenstein
--- Chris W. Parker [EMAIL PROTECTED] wrote: Did you purposefully ignore my previous email??? Someone else I think mentioned this in another email in this thread also. Why are you assigning anything to $HTTP_GET_VARS at all? It's meant to retrieve data. // (again) this is how you use

RE: [PHP] Question on query string

2004-11-16 Thread Stuart Felenstein
--- Ford, Mike [EMAIL PROTECTED] wrote: //Textfields / Dropdown $HTTP_GET_VARS['JTitle']; $HTTP_GET_VARS['City']; $HTTP_GET_VARS['Days']; And thrice ditto. They looked good, gone now :) Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Question on query string

2004-11-16 Thread Chris W. Parker
Stuart Felenstein mailto:[EMAIL PROTECTED] on Tuesday, November 16, 2004 1:35 PM said: I'm not seeing what is incorrect. I did try $HTTP_GET_VARS['Ind'] = urldecode('Ind'); (in searchresults.php) but of course it wasn't imploded yet. I don't want to confuse this question or myself (or

RE: [PHP] Question on query string

2004-11-16 Thread Jason Oakley
To: Ford, Mike; '[EMAIL PROTECTED] ' Subject: RE: [PHP] Question on query string --- Ford, Mike [EMAIL PROTECTED] wrote: //Textfields / Dropdown $HTTP_GET_VARS['JTitle']; $HTTP_GET_VARS['City']; $HTTP_GET_VARS['Days']; And thrice ditto. They looked good, gone now :) Stuart -- PHP

RE: [PHP] Question on query string

2004-11-16 Thread Robert Cummings
On Tue, 2004-11-16 at 20:24, Robby Russell wrote: On Wed, 2004-11-17 at 11:28 +1100, Jason Oakley wrote: I think maybe $jtitle=$HTTP_GET_VARS['JTitle']; Might I remind you that $_HTTP_*_VARS is deprecated.. $_GET $_POST (it's also much quicker to type) And not as backward

RE: [PHP] Question on query string

2004-11-16 Thread Robby Russell
On Wed, 2004-11-17 at 11:28 +1100, Jason Oakley wrote: I think maybe $jtitle=$HTTP_GET_VARS['JTitle']; Might I remind you that $_HTTP_*_VARS is deprecated.. $_GET $_POST (it's also much quicker to type) -Robby -- /*** * Robby Russell |

Re: [PHP] Question for the PHP consultants out there.

2004-11-12 Thread Daniel Lahey
What web based software project management tool do you use to keep track of projects, project tasks, customer requests, and bug reports? You might try Ace Project: http://www.aceproject.com/ An error is the more dangerous in proportion to the degree of truth which it contains. - Henri Frederic

Re: [PHP] Question on functions

2004-11-11 Thread Sebastian Mendel
Jason wrote: Looks like you understand already. Did you have some broken code you wanted help with? yeah.. I should have posted it first. Here it is: /* User Defined Variables */ $defined = array( 0 = localhost, 1 = user, 2 =

Re: [PHP] Question on functions

2004-11-11 Thread Jason
Sorry, yeah it is a typo Sebastian Mendel wrote: Jason wrote: Looks like you understand already. Did you have some broken code you wanted help with? yeah.. I should have posted it first. Here it is: /* User Defined Variables */ $defined = array( 0 = localhost, 1

Re: [PHP] Question on functions

2004-11-11 Thread Sebastian Mendel
Jason wrote: Looks like you understand already. Did you have some broken code you wanted help with? yeah.. I should have posted it first. Here it is: /* User Defined Variables */ $defined = array( 0 = localhost, 1 = user, 2 =

Re: [PHP] Question on functions

2004-11-11 Thread Jason
Sebastian Mendel wrote: Jason wrote: Looks like you understand already. Did you have some broken code you wanted help with? yeah.. I should have posted it first. Here it is: /* User Defined Variables */ $defined = array( 0 = localhost, 1 = user,

Re: [PHP] Question on functions

2004-11-11 Thread elixon
I'm not certified expert ;-) but what I meant is Do not use function that writes to the hardcoded global variables: example: function db() { ... $GLOBALS['db']=x_open_something($GLOBALS['...'], ...); ... } This function is really... hm... not flexible enough ;-) It can make

Re: [PHP] Question on functions

2004-11-11 Thread Jason
That is exactly the type of example I was in need of. Thanks a ton. Elixon wrote: I'm not certified expert ;-) but what I meant is Do not use function that writes to the hardcoded global variables: example: function db() { ... $GLOBALS['db']=x_open_something($GLOBALS['...'], ...); ...

Re: [PHP] Question for the PHP consultants out there.

2004-11-11 Thread Jason Wong
On Friday 12 November 2004 06:36, Brent Clements wrote: I'm looking at replacing a home-grown solution I wrote in PHP a while back. I've done the google thing, but everything I've tried doesn't really sit well with me. So...now I'm turning to my peers for suggestions. List what you tried.

Re: [PHP] Question on functions

2004-11-10 Thread John Holmes
Jason wrote: My question is in regard to passing global variables to a function. Here is my code, any idea why it is not working? I suppose my understanding of a global variable being able to be used within a function is off? global $array = array( 0 = hostname, 1 = username, 2 = password );

Re: [PHP] Question on functions

2004-11-10 Thread Jason Gerfen
John Holmes wrote: Jason wrote: My question is in regard to passing global variables to a function. Here is my code, any idea why it is not working? I suppose my understanding of a global variable being able to be used within a function is off? global $array = array( 0 = hostname, 1 =

Re: [PHP] Question on functions

2004-11-10 Thread elixon
Or you can use superglobal variable $GLOBALS that is array containing all GLOBAL variables. This variable is superglobal thus does not need to be declared global using 'global $GLOBALS;' statement. Works anywhere. function database() { ... $GLOBALS['array'][0], $GLOBALS['array'][1] ...

Re: [PHP] Question on functions

2004-11-10 Thread Jason
Could you give me a good example of the tip you recommend or point me to a good tutorial on it? Elixon wrote: Or you can use superglobal variable $GLOBALS that is array containing all GLOBAL variables. This variable is superglobal thus does not need to be declared global using 'global

Re: [PHP] Question on functions

2004-11-10 Thread Sebastian Mendel
Jason wrote: Could you give me a good example of the tip you recommend or point me to a good tutorial on it? $GLOBALS holds all variables defined in main(), main() meaning outside any function or class //main() $my_var = 'test'; function myFunction() { echo $GLOBALS['my_var']; // is the

Re: [PHP] Question on functions

2004-11-10 Thread Jason
Yeah the global stuff I understand and can use fine. What I would like more information about is the use of arguments to functions i.e. function( $user, $pass, $db ) { $db = @mysql_connect( $user, $pass, $db ); } I understand parts but googling for the proper use of functions in php hasn't

Re: [PHP] Question on functions

2004-11-10 Thread Greg Donald
On Wed, 10 Nov 2004 10:10:37 -0700, Jason [EMAIL PROTECTED] wrote: Yeah the global stuff I understand and can use fine. What I would like more information about is the use of arguments to functions i.e. function( $user, $pass, $db ) { $db = @mysql_connect( $user, $pass, $db ); } I

Re: [PHP] Question on functions

2004-11-10 Thread Jason
Greg Donald wrote: On Wed, 10 Nov 2004 10:10:37 -0700, Jason [EMAIL PROTECTED] wrote: Yeah the global stuff I understand and can use fine. What I would like more information about is the use of arguments to functions i.e. function( $user, $pass, $db ) { $db = @mysql_connect( $user, $pass, $db );

Re: [PHP] Question: Exiting a script

2004-11-08 Thread Richard Davey
Hello Stuart, Monday, November 8, 2004, 10:31:51 AM, you wrote: SF Say I have a script that processes input data. How do I get the SF script to work, where after processing the user is taken to SF another page ? The script outputs nothing to the screen and will SF end either in failure or

Re: [PHP] Question: Exiting a script

2004-11-08 Thread Stuart Felenstein
--- Richard Davey [EMAIL PROTECTED] wrote: some text or white-space, aborting'; } else { Richard Davey I think white space is my problem. What causes white space ? Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question: Exiting a script

2004-11-08 Thread Stuart Felenstein
Never mind , I found it! !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/ TR/xhtml1/DTD/xhtml1-transitional.dtd One of these days I'll master the header function ;) Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Question: Validation on a text field

2004-11-04 Thread Jay Blanchard
[snip] Any thoughts ? [/snip] I thought I'd have lunch today, but I didn't. Is it a 'text' data type, or 'BLOB', (you said, actual Mysql Text column, aka like a blob) because the distinction is needed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Question: Validation on a text field

2004-11-04 Thread Vail, Warren
Assuming that the pasting is done into a textarea/textarea on an html form, I believe the Textarea will limit the past to just text characters. I suppose this could be dependent on the browser. I don't know of any html input control that would allow blob (binary) values. I also don't know if

RE: [PHP] Question: Validation on a text field

2004-11-04 Thread Stuart Felenstein
It's a mysql text field. Stuart --- Jay Blanchard [EMAIL PROTECTED] wrote: [snip] Any thoughts ? [/snip] I thought I'd have lunch today, but I didn't. Is it a 'text' data type, or 'BLOB', (you said, actual Mysql Text column, aka like a blob) because the distinction is needed. --

RE: [PHP] Question: Validation on a text field

2004-11-04 Thread Stuart Felenstein
--- Vail, Warren [EMAIL PROTECTED] wrote: I also don't know if MySQL will police things input to a text column to make sure they are valid ascii text characters. No Mysql won't do it. PHP validation would have to be involved. Stuart -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Question: Validation on a text field

2004-11-04 Thread Jay Blanchard
[snip] It's a mysql text field. [/snip] You can use htmlentities() on the information placed into the field -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Question: Validation on a text field

2004-11-04 Thread Stuart Felenstein
May I ask why you are suggesting this function ? Stuart --- Jay Blanchard [EMAIL PROTECTED] wrote: [snip] It's a mysql text field. [/snip] You can use htmlentities() on the information placed into the field -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Question: Validation on a text field

2004-11-04 Thread Jay Blanchard
[snip] May I ask why you are suggesting this function ? You can use htmlentities() on the information placed [/snip] Because it will convert things like quotes into their HTML counterparts before you place them into the table. If you are reading it back out to a web interface they get properly

Re: [PHP] Question: Validation on a text field

2004-11-04 Thread Ben Ramsey
Jay Blanchard wrote: [snip] May I ask why you are suggesting this function ? You can use htmlentities() on the information placed [/snip] Because it will convert things like quotes into their HTML counterparts before you place them into the table. If you are reading it back out to a web interface

RE: [PHP] Question: Validation on a text field

2004-11-04 Thread Stuart Felenstein
--- Jay Blanchard [EMAIL PROTECTED] wrote: [snip] May I ask why you are suggesting this function ? You can use htmlentities() on the information placed [/snip] Because it will convert things like quotes into their HTML counterparts before you place them into the table. I'm still a

Re: [PHP] Question: Validation on a text field

2004-11-04 Thread Stuart Felenstein
--- Ben Ramsey [EMAIL PROTECTED] wrote: You should also use mysql_real_escape_string() on the data from the client. Even though Magic Quotes GPC is turned on ? Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question on mysql_fetch_object()

2004-10-23 Thread Jason Wong
On Saturday 23 October 2004 13:05, Walter Wojcik wrote: I am trying to write a script that checks a table for a value in MySQL. It opens the table and queries it fine but if my query returns nothing i have no way of testing to see if it returned anything. I have tried testing for false and

RE: [PHP] Question: Validation on select boxes and lists.

2004-10-22 Thread Stuart Felenstein
I just remembered something (smacks myself in the head) In both my multi select and select menus I use dynamic options (meaning the options available come from a table. So: Table for states would look like this: +--+---+ | StateID | State [Label|

Re: [PHP] Question: Validation on select boxes and lists.

2004-10-22 Thread M. Sokolewicz
Stuart Felenstein wrote: I just remembered something (smacks myself in the head) In both my multi select and select menus I use dynamic options (meaning the options available come from a table. So: Table for states would look like this: +--+---+ | StateID | State [Label

Re: [PHP] Question: Simpler loop

2004-10-22 Thread Marek Kilimajer
Stuart Felenstein wrote: I have rows of input fields Each row contains 3 fields. The user must fill out the entire row (all 3 fields) for things to work right. I want to generate an error in case they have only filled in 1 or 2 of the boxes. Thinking I might use something like this:

RE: [PHP] Question: Simpler loop

2004-10-22 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 22 October 2004 15:34, Stuart Felenstein wrote: I have rows of input fields Each row contains 3 fields. The user must fill out the entire row (all 3 fields) for things to

RE: [PHP] Question: Simpler loop

2004-10-22 Thread Graham Cossey
Slightly simpler: foreach(...) { $count = 0; if ($skill != '') $count++; if ($skys[$key] != '') $count++; if ($slus[$key] != '') $count++; if $count 3 echo 'Invalid'; else echo 'Valid'; } Graham -Original Message- From: Stuart Felenstein [mailto:[EMAIL

RE: [PHP] Question: Simpler loop

2004-10-22 Thread Graham Cossey
Yep, Mike's solution is simpler. It's getting late on Friday and the brain is starting to slow down. (That's my excuse anyway...) [snip] Is there a simpler way / shorter way to check conditions to do this ? So, the entry is valid only if all three are non-blank? In which case:

RE: [PHP] Question: Simpler loop

2004-10-22 Thread Stuart Felenstein
Yes, I think that will work, as soon as I can figure out where on the page it should go. On error should post to itself, on success it moves to next page. I put the loop on top and am getting an invalid argument for the foreach. Stuart --- Ford, Mike [EMAIL PROTECTED] wrote: In which case:

RE: [PHP] Question: Validation on select boxes and lists.

2004-10-21 Thread Graham Cossey
[snip] Hope this is not off topic, and it might be a dumb question, but I'm new. For drop down menus, list boxes, selects etc, would validation be needed to check the string , say for special characters ? (as a security precaution) I have read several posts/articles on this matter and

RE: [PHP] Question: Validation on select boxes and lists.

2004-10-21 Thread Stuart Felenstein
Graham, Thank you. Actually , you suggested this site to me the other day and it's great! I have read through a number of documents and have a few more to get through. How would a hacker pass an HTTP message ? That is interesting. Stuart --- Graham Cossey [EMAIL PROTECTED] wrote: [snip]

RE: [PHP] Question: Validation on select boxes and lists.

2004-10-21 Thread Graham Cossey
Cossey; Stuart Felenstein Subject: RE: [PHP] Question: Validation on select boxes and lists. you have to remember that the user isn't really filling in a form on your site, rather they are retrieving a page from your site, storing it on their machine (most times temporarily in their browser

Re: [PHP] question about mkdir() and ownership permissions

2004-10-13 Thread Jason Wong
On Thursday 14 October 2004 06:02, Jason FB wrote: Does anyone know how I can create a directory which is owned by my user account on this server-- or have any other creative suggetions? If you have it, use FTP. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software

Re: [PHP] Question about array_search

2004-10-11 Thread Matt M.
Say I'm trying to add a value to an array, only if it's not already in there somewhere; so I do an array_search to see. The problem is that if the item is at index 0 in the array, array_search gives the same answer as if it's not in there at all. How does one circumvent this potential

Re: [PHP] Question about array_search

2004-10-11 Thread Greg Donald
On Mon, 11 Oct 2004 09:07:13 -0700, Brian Dunning [EMAIL PROTECTED] wrote: Say I'm trying to add a value to an array, only if it's not already in there somewhere; so I do an array_search to see. The problem is that if the item is at index 0 in the array, array_search gives the same answer as

Re: [PHP] Question about array_search

2004-10-11 Thread Robin Vickery
On Mon, 11 Oct 2004 09:07:13 -0700, Brian Dunning [EMAIL PROTECTED] wrote: The problem is that if the item is at index 0 in the array, array_search gives the same answer as if it's not in there at all. No it doesn't. If it's in index 0 it returns 0, if it's not there at all it returns

Re: [PHP] Question about array_search

2004-10-11 Thread John Holmes
Brian Dunning wrote: Say I'm trying to add a value to an array, only if it's not already in there somewhere; so I do an array_search to see. The problem is that if the item is at index 0 in the array, array_search gives the same answer as if it's not in there at all. No it doesn't. If the

Re: [PHP] Question about array_search

2004-10-11 Thread John Holmes
Greg Donald wrote: On Mon, 11 Oct 2004 09:07:13 -0700, Brian Dunning [EMAIL PROTECTED] wrote: Say I'm trying to add a value to an array, only if it's not already in there somewhere; so I do an array_search to see. The problem is that if the item is at index 0 in the array, array_search gives the

Re: [PHP] Question about error_reporting()

2004-10-09 Thread Jason Wong
On Saturday 02 October 2004 00:34, Greg Donald wrote: The manual is not clear on this point. Also, must I have a an existing error file for the errors to append to? No, the web server error log is where they shoudl appear. No, PHP errors DO NOT appear in the apache logs[1], they are

Re: [PHP] Question about handling credit cards

2004-10-05 Thread Gary Hotko
Could you provide more information, code example or a how to to do this.. Thanks On Mon, 04 Oct 2004 15:03:31 -0700, Matthew Fonda [EMAIL PROTECTED] wrote: The best way to store credit card numbers is to have them encrypted when they are stored in the database, and decrypted when they need

Re: [PHP] Question about handling credit cards

2004-10-05 Thread Paul Waring
On Tue, 5 Oct 2004 12:29:53 -0400, Gary Hotko [EMAIL PROTECTED] wrote: Could you provide more information, code example or a how to to do this.. Have a look at the Mcrypt functions in PHP (you need to complie support for this extension to access these features):

Re: [PHP] Question about handling credit cards

2004-10-05 Thread Andrew Kreps
On Mon, 4 Oct 2004 14:49:44 -0700, Ed Lazor [EMAIL PROTECTED] wrote: I'm looking at online stores and it seems like a lot of them maintain copies of credit card numbers. Is this true? That seems like a bad thing to me, especially in terms of liability and risk of hackers. On the flip side,

Re: [PHP] Question about handling credit cards

2004-10-04 Thread Matthew Fonda
The best way to store credit card numbers is to have them encrypted when they are stored in the database, and decrypted when they need to be used, that way it will be safer for the most part On Mon, 2004-10-04 at 14:49, Ed Lazor wrote: I'm looking at online stores and it seems like a lot of them

Re: [PHP] Question about error_reporting()

2004-10-01 Thread Greg Donald
On Fri, 01 Oct 2004 10:36:28 -0400, Al [EMAIL PROTECTED] wrote: If I place this at the top of my script file, the page just hangs. error_reporting (E_ERROR | E_WARNING); A virtual host on a Unix/Apache system. Runs fine without the error_reporting(). The default system error reporting

Re: [PHP] Question about error_reporting()

2004-10-01 Thread Al
Greg Donald wrote: On Fri, 01 Oct 2004 10:36:28 -0400, Al [EMAIL PROTECTED] wrote: If I place this at the top of my script file, the page just hangs. error_reporting (E_ERROR | E_WARNING); A virtual host on a Unix/Apache system. Runs fine without the error_reporting(). The default system error

Re: [PHP] Question about error_reporting()

2004-10-01 Thread Greg Donald
On Fri, 01 Oct 2004 12:13:18 -0400, Al [EMAIL PROTECTED] wrote: What's puzzling is that I can simply comment out the error_reporting line and the code runs fine. Also, the Apache error log doesn't show any errors. with or without the error_reporting. Make sure you have log_errors = On in

Re: [PHP] Question on using png file in ezPdf class

2004-09-21 Thread Jason Davidson
Possibly you need to compile php with-png ?? im not sure of this, im just taking a stab in the dark.. Jason Chris Bruce [EMAIL PROTECTED] wrote: Hello, I am using the PDF creation classes from http://www.ros.co.nz/pdf Everything is working great with the exception of not being able to

Re: [PHP] Question on using png file in ezPdf class

2004-09-21 Thread Chris Bruce
Don't think that is it, but for the record, it is compiled with-png. Thanks for the stab though :) -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282 Wilmar Cres. Mississauga, ON L5L4B2 CA 905.828.9189 South Office 705.361.0331 North Office

Re: [PHP] question dealing with divs, forms, and select/options..

2004-08-30 Thread Jason Wong
On Tuesday 31 August 2004 03:12, bruce wrote: this question probably has more to do with html/divs than actual php.. but since i'm implementing in php, figured i'd ask here as well!! Since you wrote this message on a Windows based machine I figured you should ask Bill Gates as well. --

RE: [PHP] question dealing with divs, forms, and select/options..

2004-08-30 Thread Jay Blanchard
[snip] the above is a short approximation of the underlying logic that i'm trying to implement. i can post/send the actual php that i'm using if anybody's able to help [/snip] That is an excellent idea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: php question

2004-08-18 Thread Torsten Roehr
Michael Crane [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hello, I have a webpage which includes a frame containing a table made of 24 tds which in turn contain little images. When the mouse clicks on a little image the appropriate larger image is loaded into an adjacent frame.

Re: [PHP] Re: php question

2004-08-18 Thread michael crane
Torsten Roehr wrote: Michael Crane [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hello, I have a webpage which includes a frame containing a table made of 24 tds which in turn contain little images. When the mouse clicks on a little image the appropriate larger image is loaded into an

Re: [PHP] question about file_put_contents

2004-08-12 Thread Curt Zirzow
* Thus wrote Corey Hitchcock: Hi, I'm relatively new with php but I have a question about this 'new' function. If I use file_put_contents(file.txt, whatever) then it, of course, writes whatever in the file.txt. If I later do the same thing but put a different word (say other) from whatever

RE: [PHP] Question about for

2004-07-25 Thread Ash Young
You could try for ($i=1;$i11;$i=$i+2) -- ash young :: http://evoluted.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about for

2004-07-25 Thread Miroslav Hudak (php/ml)
?php for ($x = 0; $x 10; $x += 2) echo $x.','; ? m. Henri Marc wrote: Hello, I woudlike to use a loop: for ($i=1;$i11;$i++) But instead of incrementing with 1, I would like to increment by 2. So $i would be 1,3,5,7,9. I tried to find the answer may be with step but couldn't find

Re: [PHP] Question about executing PHP script

2004-06-29 Thread Red Wingate
Yep :-) [...] can I do a #!/usr/bin/php -q at the begining of the text file? [...] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    2   3   4   5   6   7   8   9   10   11   >