RE: [PHP] Retain form values...

2004-03-18 Thread Shane McBride
How about passing the form variables to a hidden field on the next page? I used this for several page forms before. Also, sessions work well. Shane -Original Message- From: Firman Wandayandi [mailto:[EMAIL PROTECTED] Sent: Thursday, March 18, 2004 3:43 PM To: [EMAIL PROTECTED] Cc:

RE: [PHP] Retain form values...

2004-03-18 Thread Shane McBride
Gotcha. I typically use javascript to validate before the form is posted to validate. shane -Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: Thursday, March 18, 2004 6:23 PM To: Shane McBride; PHP Subject: RE: [PHP] Retain form values... Shane McBride mailto

RE: [PHP] Retain form values...

2004-03-18 Thread Shane McBride
Actually all form validation is done before the form action takes place, so that way we do not loose input. shane -Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: Thursday, March 18, 2004 6:38 PM To: Shane McBride; PHP Subject: RE: [PHP] Retain form values

[PHP] Simple: Whats wrong with this?

2004-03-17 Thread Shane McBride
I have a form variable I want to increment by a value of 1 each time the page loads. Here's what I have so far: if(!isset($correct)) { $correct = 0; } else { $correct = $correct++; } Seems like it should work? Thanks! Shane -- PHP General Mailing List

RE: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Shane McBride
It doesn't seem to work either way for me. Shane -Original Message- From: Jake McHenry [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 12:01 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Simple: Whats wrong with this? No. $correct++; Is all you need for the second

RE: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Shane McBride
++ } Shane -Original Message- From: Adam Voigt [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 12:06 PM To: Shane McBride Cc: PHP Subject: RE: [PHP] Simple: Whats wrong with this? Well I accidentally deleted your original email, but I didn't see where you were getting the counter

RE: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Shane McBride
No, the value still is not incrementing. -Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 12:25 PM To: Shane McBride; PHP; [EMAIL PROTECTED] Subject: RE: [PHP] Simple: Whats wrong with this? Shane McBride mailto:[EMAIL PROTECTED

[PHP] Parse out text

2002-12-13 Thread Shane McBride
I have a form that is submitting a Javascript to validate fields before the form casn be submitted. The problem is that the field name has to be prefixed with required. So, if I have a field called email, it has to be called requiredemail in order for the javascript to work. How can I remove the

[PHP] Multiple page form

2002-11-26 Thread Shane McBride
Hi there. It's been a while since I have done any PHP work. I am creating an online employment application using multiple forms for a client. I was going to use PHP. I don't remember if I need to pass variables along with the form for each page, or can I just call them on the last page. The

RE: [PHP] Multiple page form

2002-11-26 Thread Shane McBride
So, you are using a database to store the records? -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 10:45 AM To: Shane McBride; [EMAIL PROTECTED] Subject: Re: [PHP] Multiple page form It's been a while since I have done any PHP work. I am

[PHP] Add FTP user via PHP?

2002-04-23 Thread Shane McBride
Is there a way to add an ftp user and assign them to a directory when the host server does not and will not load the ftp module? Shane McBride RDI Technologies www.rditech.net Office: 410-575-6326 Fax:410-575-6327 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] MAC file upload

2002-04-06 Thread Shane McBride
on this? Shane McBride RDI Technologies www.rditech.net Office: 410-575-6326 Fax:410-575-6327 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] writing a time to mysql????

2001-04-26 Thread Shane McBride
Here's some code that I am using to get the time that is inout from a form into mysql. It looks like I may have the format backwartds. Any ideas? INSERT into events (e_title, e_details, start, end, s_time, e_time) values ('$title', '$details',

Re: [PHP] PHP File Uplaod Path

2001-02-08 Thread Shane McBride
Dhaval, You really do not nee to be concerned about the temp directory, but if you are, you can wite a little script (if your not the sysadmin) to find this out. Actually it tells you a ton of useful info. Here it is: ? phpinfo(); ? Name it phpinfo.php or whatever you like, upload it to the

Re: [PHP] HTTP Authentication

2001-02-07 Thread Shane McBride
Nick, I'm not sure were you are getting the value of $PHP_AUTH_USER from, so you might want to try this snippet. This causes a dialog box to open and ask for a username/password. Also, in your code: you do not need to escape the quotes in the header. ? // Check to see if $PHP_AUTH_USER

Re: [PHP] PHP as Scripting Language

2001-02-07 Thread Shane McBride
This is just a guess, but remove the path (#!/usr/local/bin/php) If you have the php.ini and (I'm assuming Apache) the httpd.conf file configured you shouldn't need it. I never have used it. It looks like the Perl way to script... :) DISCLAIMER: I am by no means well-versed in this, or any

Re: [PHP] Sum from Arrays ?

2001-02-07 Thread Shane McBride
Hum, maybe the count() function. Works with mysql_fetch_array() too. Here's a sample: $a[0] = 1; $a[1] = 3; $a[2] = 5; $result = count ($a); //$result == 3 Here's a link: http://php.net/manual/en/function.count.php DISCLAIMER: I am by no means well-versed in this, or any other, topic - Shane

Re: [PHP] I wish: IIS and ISAPI $PHP_AUTH_USER

2001-02-06 Thread Shane McBride
rized'); echo 'Authorization Required!'; exit; } else { // Start echo statement echo "hello"; } } - Original Message - From: "Phil Driscoll" [EMAIL PROTECTED] To: "Shane McBride" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, February 06, 2001 4:49

Re: [PHP] I wish: IIS and ISAPI $PHP_AUTH_USER

2001-02-06 Thread Shane McBride
Phil, Did you happen to copy the php4ts.dll into the winnt directory? I am not sure of the error you are getting, but it may help? - Original Message - From: "Phil Driscoll" [EMAIL PROTECTED] To: "Shane McBride" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesda

Re: [PHP] I wish: IIS and ISAPI $PHP_AUTH_USER

2001-02-06 Thread Shane McBride
Phil, Hey check out this thread: http://www.phpbuilder.com/forum/read.php3?num=3id=100242thread=100047 - Original Message - From: "Phil Driscoll" [EMAIL PROTECTED] To: "Shane McBride" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, February 06, 2001 11:14 AM

[PHP] File upload - ascii format

2001-02-06 Thread Shane McBride
How can I ensure that a file is transferred in ascii mode using the following: form enctype="multipart/form-data" method="post" action="do_upload.php" pstrongFile to Upload:/strongbr input type="file" name="img1" size="30"/p emplresults.txtinput type="radio" name="file_type"

[PHP] uploading file

2001-02-05 Thread Shane McBride
OK, I'm not sure if the file is getting uploaded or not, and it certainly is not getting copied to the permanent directory. Here's what I have: This creates the upload form: FORM method="post" ENCTYPE="multipart/form-data" action="add_record2.php" INPUT type="file" name="picture" size=30 /form

[PHP] PHPSESSID location?

2001-02-05 Thread Shane McBride
Where is the temp session file held at? I have a script that uses sessions but I can't find the session file. My php.ini file indicates that the session.save_path = c:\php\sessiondata but there is not any files there when there should be. It does look like the session is working though. Any

Re: [PHP] simple config. question

2001-02-05 Thread Shane McBride
Unless I am mistaken, I am pretty sure you need to have sometype of .php extension. Unless you could put a line in the httpd.conf file like: AddType application/x-httpd-php .html BUT, I HAVE NEVER DONE THIS SO PLEASE WAIT FOR A MORE EDUCATED ANSWER. - Shane - Original Message -

[PHP] I wish: IIS and ISAPI $PHP_AUTH_USER

2001-02-05 Thread Shane McBride
I tried for days to get IIS to authorize a user with $PHP_AUTH_USER and never got anywhere, so I used apache and it works fine. I wish I just knew why. I loaded PHP as ISAPI, like the manual indicated, but no luck. I would like to use some of the functionality of IIS/NT5.0 Any ideas

Re: [PHP] IIS ISAPI

2001-02-03 Thread Shane McBride
Yea I had to move the php4ts.dll dile to the winnt directory. Thanks. Have you every tried to get authentication to work using PHP as isapi? - Original Message - From: "Chris Fry" [EMAIL PROTECTED] To: "Shane McBride" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: S

[PHP] HTTP Authentication w/IIS

2001-02-03 Thread Shane McBride
OK, I loaded PHP with the ISAPI filter, but still no luck with authentication.. Here's the basic script that works on Apache/Linux: ? // File name: admin_menu.php // Check to see if $PHP_AUTH_USER already contains info if (!isset($PHP_AUTH_USER)) { // If empty, send header causing dialog box

[PHP] Pricing for PHP programming???

2001-01-31 Thread Shane McBride
I know this is not really a PHP question, but it should make for a good thread. :) I was wondering what other PHP people charge to write PHP? I have just been given a project for a fairly large customer, much larger than I normally do work for. So I am VERY confused.concerned about how to

Re: [PHP] How can I make PHP to work on Win98 ?

2001-01-30 Thread Shane McBride
Here's my input: Get Xitami for Windows. You can not do any version of IIS on win98. Xitami is VERY easy to configure. Then you of course will need PHP. First, install Xitami, then PHP. The PHP installer will ask you what type of web server you run and configure PHP and the web server

[PHP] IIS and $PHP_AUTH_USER

2001-01-29 Thread Shane McBride
I am getting a whole lot closer to getting IIS to work with PHP loading as ISAPI. Now, when I try to get authorized, it never works. It's probably a varialbe in the .ini file I have not set. I keep getting the user prompt box, and the realm changes after the first login failure NT5 PHP

[PHP] IIS and PHP authorization

2001-01-27 Thread Shane McBride
I finally got PHP, MySQL and Win2k installed after a long hard battle with a Promise Ultra/66 controller card. Now, PHP seems to work fine exceot when I have a script that requires authorization, I never get the popup box to input the login and password. Here's the script: ? // Include the

Re: [PHP] IIS and PHP authorization

2001-01-27 Thread Shane McBride
I thought PHP would only run as CGI on IIS? Right now I'm trying to config Apache. - Original Message - From: "Rasmus Lerdorf" [EMAIL PROTECTED] To: "Shane McBride" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, January 27, 2001 9:44 PM Subject: R

[PHP] include_path in windows

2001-01-26 Thread Shane McBride
I am trying to get my php.ini file configured correctly. I have a script that calls the require function/command( I'm not sure which it is..) Here's what the .ini file is: include_path=d:\sites;d:\sites\merchantpower\setup According to the notation in the .ini file I have the correct syntax,

[PHP] include_path again

2001-01-26 Thread Shane McBride
OK, I figured out that I had forgotten the quotes around the path(s), but I still don't understand the path itself. Will it look in sub directories.For example: include_path=".;d:\sites" Will PHP look in any subs under sites? - Shane

[PHP] common.inc probs.

2001-01-26 Thread Shane McBride
I have a script that pulls in the following file via: require 'common.inc' The problem occurs when it hits the $UNIX_PATH variable. At least I think that's where it creates a problem. If I comment it out it works fine, but I of course need that variable. First of all I created a script that

Re: [PHP] Help Please, MySQL is driving me insane

2001-01-26 Thread Shane McBride
Have you started the server? If not go to the command prompt and: 1. cd c:\mysql\bin (assuming this is where it was installed. 2. type mqsqld-opt (optimized for pentium class PC) That should start the server. If you need more help let me know. - Shane - Original Message - From: "Chris"

Re: [PHP] phpinfo ?

2001-01-26 Thread Shane McBride
Try this: html body ?php phpinfo(); ? /body /html -Shane - Original Message - From: "kaab kaoutar" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 26, 2001 10:23 AM Subject: [PHP] phpinfo ? Hi there! I'm sure it's a stupid problem but the phpinfo does work while

[PHP] really need help...

2001-01-26 Thread Shane McBride
I am getting this error and I don't understand. I am running PHP 4.0.4 and Xitami web server on Windows 98SE. I know this is not the most ideal setup, but I just use it for developing. Warning: Unable to create 'd:\sites\merchantpower\mp\images\': Permission denied in

[PHP] Help w/ quotes/html and data from MySQL

2001-01-23 Thread Shane McBride
I have a field in MySQL that holds data that may look like this: bRose Painting/b"Looks really nice, blah, blah"b25.00/b Now, I want to pull that data back into a form textarea to edit. Here's how I have unsuccessfully been doing it: ? beginning code tdDescription:/td tdtextarea

[PHP] Help: Google like page functions

2001-01-23 Thread Shane McBride
I thought this had been addressed earlier, but I could not find the thread. If I have a MySQL DB that has 50 records in it and I want to display 5 per page. How do I do this. Also, 50 was just a nice round number, the number will change constantly. All the search engines are doing this type of

Re: [PHP] Help: Google like page functions

2001-01-23 Thread Shane McBride
I found a great little snippet by accident that does the "Previous 123 Next" links. If anyone is interested, here's the link to it: http://www.phpbuilder.net/snippet/detail.php?type=snippetid=21 - Original Message ----- From: "Shane McBride" [EMAIL PROTECTED] To: [E

[PHP] Search Engine submittal and PHP

2001-01-17 Thread Shane McBride
I have a site that uses PHP extensively. Each page has PHP, so of course each page ends in the .php extension. Does anyone know if this affects the way a search engine crawls a site? I have several sites that are very successful, but this site does not even show up on the search engines. All

Re: [PHP] How do I store a pic?

2001-01-12 Thread Shane McBride
Kenneth, I store the path to the image in the table. I am unsure if you can actually write an image to a table. When the item is deleted, I run an "exec" command to remove the actual file. Here's some snippets: The actual html to create the upload file text box within a form: INPUT

Re: [PHP] Session Errors, do you recognize?

2001-01-10 Thread Shane McBride
Make sure that the ? that starts the php script is the VERY first line of the file, and that there are NO spaces before it anywhere. I had the same problem, I was used to html and even PHP being rather syntax flexible. As soon as I removed the spaces and extra line at the beginning of the file,

Re: [PHP] pause

2001-01-10 Thread Shane McBride
If you find something other than client side validation, let me know please. I had to resort to VBScript and I hate it! - Original Message - From: "jeremy brand" [EMAIL PROTECTED] To: "DanO" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, January 10, 2001 4:42 PM Subject: RE: