Re: [PHP] header function problem

2003-06-06 Thread Daniel J. Rychlik
] Sent: Thursday, June 05, 2003 1:01 AM Subject: Re: [PHP] header function problem On Thursday 05 June 2003 07:01, Daniel J. Rychlik wrote: Well, it works if I use the full path instead of relative So obviously its an apache permissions issue. It has nothing to do with apache

[PHP] Passing values back to form

2003-06-06 Thread Daniel J. Rychlik
Im new to PHP coming from a background in perl devlopement. I have a form that a user can fill out. On submit the values are iterated over a foreach to check for empty(). If the an emtyp $key is found then it passes an error string to my error function. I have 2 php files, one that is

Re: [PHP] Passing values back to form

2003-06-06 Thread Daniel J. Rychlik
Thanks so much for your time. These are great tips, thanks again. - Original Message - From: Kevin Stone [EMAIL PROTECTED] To: Daniel J. Rychlik [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, June 05, 2003 12:37 PM Subject: Re: [PHP] Passing values back to form Hi Daniel, My

[PHP] session_start questions.

2003-06-06 Thread Daniel J. Rychlik
Questions, Questions, Questions. Where do I start in understanding how this function works. Ive read the document multiple times, and I am having a bit of trouble figuring out how this function works. I know that you can take session data and hold it somewhere for a user and use that

[PHP] A good function

2003-05-30 Thread Daniel J. Rychlik
What is a good function for striping white space and removing \\..\.. and possible , Anything that would be considered unwanted user input??? I looked at trim() but its doesnt do all the things I need it to do. -Dan

[PHP] preg_match array question

2003-05-31 Thread Daniel J. Rychlik
Hey, Im trying to use preg_match to validate numbers in multiple fields. I can check one field but Im having trouble checking multiple fields. preg_match ( '(foo)' , $_POST[num1] ); - That works fine. but I need to check multiple fields. I thought I would build an array with the POST

Re: [PHP] preg_match array question

2003-05-31 Thread Daniel J. Rychlik
checking for proper input. I can write multiple elseif statements to check each field but alas, this is not optimal. I may go ahead and write this to get it done and then go back and put it to the write board -dan - Original Message - From: Ralph [EMAIL PROTECTED] To: 'Daniel J. Rychlik

Re: [PHP] preg_match array question

2003-05-31 Thread Daniel J. Rychlik
PROTECTED] To: 'Daniel J. Rychlik' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, May 30, 2003 2:42 PM Subject: RE: [PHP] preg_match array question Not sure if I'm misunderstanding, but I know that foreach() will do this. -Original Message- From: Daniel J. Rychlik [mailto:[EMAIL

Re: [PHP] preg_match array question

2003-05-31 Thread Daniel J. Rychlik
[EMAIL PROTECTED] To: 'Daniel J. Rychlik' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, May 30, 2003 4:41 PM Subject: RE: [PHP] preg_match array question foreach ($_POST as $key=$value) { if (empty($value)) { error_message[] = $key :: Missing Databr/; } // if email field, perform email

[PHP] regex problem

2003-06-01 Thread Daniel J. Rychlik
Hello,, I have a preg_match issue matching numbers. I am currently using !preg_match ('/([0-9\-\.\#:])/', $_POST['nums1'] throw error[] This fails if you use something like ' asdf ' but if you use ' asdf789 ' it passes false and does not throw an error. This is not the obvious

Re: [PHP] regex problem

2003-06-01 Thread Daniel J. Rychlik
If I wanted to remove script/script tags from my form as well as html tags, would I use a preg_match function or is their another simple funtion that does this ? -Dan - Original Message - From: Jim Lucas [EMAIL PROTECTED] To: Daniel J. Rychlik [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent

[PHP] Calling HTML pages

2003-06-05 Thread Daniel J. Rychlik
I was looking for a function that will take you to a html page. For instance. I have a function that checks for !empty values in $_POST; What I would like to do is if the field is empty then go back to the form. I have a function function display_error ($err) { echo $err; # I need

Re: [PHP] Calling HTML pages

2003-06-05 Thread Daniel J. Rychlik
: Wednesday, June 04, 2003 3:26 PM Subject: RE: [PHP] Calling HTML pages just remember you can't have any other output before the header() function is used... -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 4:19 PM To: Daniel J. Rychlik

Re: [PHP] insert loop logic

2003-06-05 Thread Daniel J. Rychlik
perhaps, a foreach loop and use the empty () function. Thats how I did it. - Original Message - From: Ryan A [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 5:24 PM Subject: [PHP] insert loop logic Hi, Can you tell me whats the best way of doing this please? I

[PHP] header function problem

2003-06-05 Thread Daniel J. Rychlik
I am using a header function to take a user back to a form if they have mistyped or entered in data that is not desirable. I have multiple functions that Ive written but the one that pertains to this situation is listed function check_data () { if (!empty($value)) {

Re: [PHP] header function problem

2003-06-05 Thread Daniel J. Rychlik
Well, it works if I use the full path instead of relative So obviously its an apache permissions issue. - Original Message - From: Daniel J. Rychlik [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 5:36 PM Subject: [PHP] header function problem I am using

[PHP] $_SESSION as $key=$value

2003-06-12 Thread Daniel J. Rychlik
Is this valid to iterate over a form variables.? foreach ($_SESSION as $key=$value) and another question, do I need this form action=scripts/process.php method=post in my form? Im really struggling with $_SESSION. Im trying to program smarter and make friendlier applications. Ive

Re: [PHP] $_SESSION as $key=$value

2003-06-13 Thread Daniel J. Rychlik
] To: 'Daniel J. Rychlik' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, June 13, 2003 1:50 AM Subject: RE: [PHP] $_SESSION as $key=$value Daniel, Rather than sending them to a new page to validate the form and then sending them back if a field is invalid, do the error checking from the same

Re: [PHP] $_SESSION as $key=$value

2003-06-13 Thread Daniel J. Rychlik
I tried to echo it as well, I recieved the same message. - Original Message - From: Ralph [EMAIL PROTECTED] To: 'Daniel J. Rychlik' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, June 13, 2003 6:50 PM Subject: RE: [PHP] $_SESSION as $key=$value I think this may be because you did

[PHP] $command actions

2003-06-14 Thread Daniel J. Rychlik
I have a line of code in my form that I am trying to get to work. $action = ($HTTP_POST_VARS['action'] == data_input) ? check : display; I recieved undefined action when running. So I did this. $command = isset($HTTP_VARS['action'] == data_input) ? check : display; I recieve unexpected

Re: [PHP] $command actions

2003-06-14 Thread Daniel J. Rychlik
I recieved a unexpected T_LOGICAL_AND, expecting ',' or ')'; - Original Message - From: Leif K-Brooks [EMAIL PROTECTED] To: Daniel J. Rychlik [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, June 14, 2003 10:22 AM Subject: Re: [PHP] $command actions $command = isset

Re: [PHP] $command actions

2003-06-14 Thread Daniel J. Rychlik
It worked! thanks so much. I did however place another ( on the second $HTTP_POST_ to make it function with out error. Appreciate your time! dan - Original Message - From: Leif K-Brooks [EMAIL PROTECTED] To: Daniel J. Rychlik [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, June

[PHP] isset()

2003-06-14 Thread Daniel J. Rychlik
Having a bit of trouble with my forms returnin 1 in the form fields accept the data that was entered. I think its because of this line, $output_fname = isset($HTTP_POST_VARS['fname']); I have a command action handler also that works in the same script and it seems to work well, the only

Re: [PHP] isset()

2003-06-14 Thread Daniel J. Rychlik
value is entered or when its not and placing a nice 1 in every field of my form. Im thinking $output_fname = isset($HTTP_POST_VARS['fname']) ? $HTTP_POST_VARS['fname'] is the answer and ive tried for several hours to fix it. -dan - Original Message - From: Daniel J. Rychlik [EMAIL

[PHP] Passing Array to object

2003-06-25 Thread Daniel J. Rychlik
Hello, I am developing a site that uses classes to reuse code and objects. I have in my main class a function SetLinks($newlinks) { $this-links = $newlinks; } And another function that displays them in the same class main { I have another file called index.php that basically just

Re: [PHP] Passing Array to object

2003-06-25 Thread Daniel J. Rychlik
yea, I gave that a shot, Same message. Logically it makes sense, but php doesnt like it. by the way, thanks for your help Chris. You've helped me in the past. -Daniel - Original Message - From: Chris Sherwood [EMAIL PROTECTED] To: Daniel J. Rychlik [EMAIL PROTECTED]; [EMAIL PROTECTED

Re: [PHP] Passing Array to object

2003-06-25 Thread Daniel J. Rychlik
why it wont work... I even try assigning $links to the array. - Original Message - From: Daniel J. Rychlik [EMAIL PROTECTED] To: Chris Sherwood [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 1:08 PM Subject: Re: [PHP] Passing Array to object yea, I gave that a shot

Re: [PHP] Passing Array to object

2003-06-25 Thread Daniel J. Rychlik
the output as expected. For some reason its still giving me the warning. hmmm.. Ive tried everything that was suggested. I think I need to go back and take another look at OO programming in php. - Original Message - From: Chris Sherwood [EMAIL PROTECTED] To: Daniel J. Rychlik [EMAIL

Re: [PHP] Passing Array to object

2003-06-25 Thread Daniel J. Rychlik
And thats why Chris is the man. Your're right it doesnt look pretty but it works. If I come up with another solution I will email it out. Thanks again, Daniel - Original Message - From: Chris Sherwood [EMAIL PROTECTED] To: Daniel J. Rychlik [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent

[PHP] Zend Studio and DreamWeaver MX

2003-06-27 Thread Daniel J. Rychlik
Hey guys, Which is a better environment to write PHP code in? Zend or Dreamweaver ? Does zend provide a WYSIWYG for putting together a web page ? -Dan

[PHP] Array Dump

2003-06-27 Thread Daniel J. Rychlik
Hmm, I just noticed that array dump counts the number of charaters and white space and lables that number string... What function name is that ? The string counter I mean ? -Dan

Re: [PHP] Newbie and learning

2003-06-27 Thread Daniel J. Rychlik
PHP is, arguably, the better way to go when developing an ecomm solution. This list is full of very intelligent programmers that will help or direct you to the proper documentation. If you use $_GET you will be able to pass value pairs in the url. Make sure that in your data check script that you

Re: [PHP] Another newbie

2003-06-28 Thread Daniel J. Rychlik
Take a close look at OO programming. Class objects are great for reusing code and making cleaner code. The art of designing code is a mastered art which is why my white board is always messy ;) . Never the less, oject oriented programming is definately the way to go. Chapter 6 in the PHP and

[PHP] PHP and Macromedia Flash

2003-06-28 Thread Daniel J. Rychlik
Does anyone know if you can dynamically update a flash swf file with a PHP script ? For instance in menu navigation I was thinking of using a flash object to display an interactive menu and have in my main class a way to update the links or buttons from page to page. Thanks in advance, Dan

Re: [PHP] PHP and Macromedia Flash

2003-06-28 Thread Daniel J. Rychlik
[EMAIL PROTECTED] To: Daniel J. Rychlik [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, June 28, 2003 6:09 PM Subject: Re: [PHP] PHP and Macromedia Flash On Sun, 2003-06-29 at 00:00, Daniel J. Rychlik wrote: Does anyone know if you can dynamically update a flash swf file with a PHP

Re: [PHP] PHP and Macromedia Flash

2003-06-28 Thread Daniel J. Rychlik
Anyone have any experience with PHPObject from http://ghostwire.com/resources/phpobject/ - Original Message - From: Daniel J. Rychlik [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, June 28, 2003 6:13 PM Subject: Re: [PHP] PHP and Macromedia Flash Well

Re: [PHP] PHP and Macromedia Flash

2003-06-28 Thread Daniel J. Rychlik
J. Rychlik [EMAIL PROTECTED] To: Daniel J. Rychlik [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, June 28, 2003 7:26 PM Subject: Re: [PHP] PHP and Macromedia Flash Anyone have any experience with PHPObject from http://ghostwire.com/resources/phpobject

Re: [PHP] download php

2003-07-10 Thread Daniel J. Rychlik
You should also store passwords in a non-readable to the world directory. -Dan - Original Message - From: Marek Kilimajer [EMAIL PROTECTED] To: Mantas Kriauciunas [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, July 10, 2003 5:01 AM Subject: Re: [PHP] download php Do you