]
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
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
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
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
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
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
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
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
[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
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
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
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
: 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
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
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)) {
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
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
]
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
[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
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
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
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
38 matches
Mail list logo