I am using ereg to validate the format of a date entry (mm/dd/yy), but if
the year ends in a 0, it is being stripped and as such produces an error. So
1990 would be 199. The dob is being inputted by a form
Here is my code:
if (!ereg("^([0-9]{2})/([0-9]{2})/([0-9]{4})$", $formsave["dob"], $pa
x27;s are also being
stripped.
foreach($HTTP_POST_VARS as $varname => $value)
$formsave[$varname] = trim($value, 50);
If it's not there then the whole script fails.
B.
- Original Message -
From: "John W. Holmes" <[EMAIL PROTECTED]>
To: "'Beauford
This is what I get when I echo $formsave["dob"] - 9/09/199. It was
inputted as 09/09/1990.
B.
- Original Message -
From: "John W. Holmes" <[EMAIL PROTECTED]>
To: "'Beauford'" <[EMAIL PROTECTED]>; "'PHP General'"
&l
--- Original Message -
From: "John W. Holmes" <[EMAIL PROTECTED]>
To: "'Beauford'" <[EMAIL PROTECTED]>; "'PHP General'"
<[EMAIL PROTECTED]>
Sent: Sunday, March 30, 2003 2:28 PM
Subject: RE: [PHP] Ereg question
> > I am usi
s once.
B.
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 30, 2003 11:20 PM
Subject: Re: [PHP] Ereg question
> On Monday 31 March 2003 04:15, Beauford wrote:
> > Just some more information. It appears tha
gt;
Sent: Monday, March 31, 2003 1:36 AM
Subject: Re: [PHP] Ereg question
> On Monday 31 March 2003 13:58, Beauford wrote:
>
> > I posted the information as I had it. I had no idea what the problem was
> > and posted the information I thought was FULL and ACCURATE -
>
> Fu
Hi,
I have the following which gets the month and day:
$mo = date("m");
$dy = date("d");
Then I have the following IF statements which do something based on the
date..
if ($mo == 04 and $dy >= 01 and $dy <= 20) { $wd = "1"; }
if ($mo == 04 and $dy >= 21 and $dy <= 27) { $wd = "2"; }
if ($mo ==
x27;t think of any other
way of doing it.
Any suggestions?
Thanks
- Original Message -
From: "Ernest E Vogelsinger" <[EMAIL PROTECTED]>
To: "Beauford" <[EMAIL PROTECTED]>
Cc: "PHP General" <[EMAIL PROTECTED]>
Sent: Friday, May 30, 2003 7
t;[EMAIL PROTECTED]>
To: "Beauford" <[EMAIL PROTECTED]>
Cc: "PHP General" <[EMAIL PROTECTED]>
Sent: Friday, May 30, 2003 9:18 PM
Subject: Re: [PHP] What's wrong with this code??
> On Fri, 2003-05-30 at 20:02, Beauford wrote:
> > Your right though, the
I'm getting the following error. My question is, where would I use the
ob_start() and ob_end_flush() function so I can get rid of this. I have read
the PHP manual, but not quite getting it.Or if there is a better way?
This is how the files work. update-corrections-input.php (user inputs info
b
Beauford wrote:
> I'm getting the following error. My question is, where would I use the
> ob_start() and ob_end_flush() function so I can get rid of this. I
> have read the PHP manual, but not quite getting it.Or if there is a
better way?
> Don't work around t
testing.
I have looked at both php.ini files, and other than the OS specific stuff,
they are the same as well.
Thanks again...
-Original Message-
From: CPT John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: December 24, 2003 8:52 AM
To: Beauford
Cc: 'PHP'
Subject: Re: [PHP] Headers Pro
Hi All,
I have a database with a bunch of dates in it. I want to count the number of
entries for each year and then display the year and the count.
i.e.
YearCount
200622
200518
200414
200322
This is what I have tried but just not quite getting it.
$query "select count(date)
Yea, I just figured this out. When I cut and pasted I must have overwrote
the =.
Thanks
> -Original Message-
> From: Stut [mailto:[EMAIL PROTECTED]
> Sent: January 4, 2007 4:27 PM
> To: Beauford
> Cc: PHP
> Subject: Re: [PHP] Date problems
>
> Beauford wrote:
Hi,
I am trying to write a script that reads a directory on Windows. All the PHP
functions I have looked at all seem to work with the Linux dietary
structure. Is there another way to do this.
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsu
rlist = array_merge ( $dirlist , $result ) ;
}
}
}
closedir ( $handle ) ;
}
if ( $d == 0 ) { natcasesort ( $dirlist ) ; }
return ( $dirlist ) ;
}
?>
> -Original Message-
> From: Jochem Maas [mailto:[EMAIL PROTECTED]
> Sent: Januar
> -Original Message-
> From: Jochem Maas [mailto:[EMAIL PROTECTED]
> Sent: January 7, 2007 8:35 PM
> To: Beauford
> Cc: 'PHP'
> Subject: Re: [PHP] Windows directory listings
>
> with regard to trolling - I'd don't *just* do that :-)
>
&
Hi,
How do I stop contents of a form from being readded to the database if the
user hits the refresh button on their browser.
I have tried to unset/destroy the variables in several different ways, but
it still does it.
After the info is written I unset the variables by using unset($var1, $var2,
also still
confused as to why giving them a null value doesn't work.
Thanks to all.
> -Original Message-
> From: Satyam [mailto:[EMAIL PROTECTED]
> Sent: January 12, 2007 8:21 AM
> To: Beauford; PHP
> Subject: Re: [PHP] Forms and destroying values
>
> This i
Original Message-
> From: Stut [mailto:[EMAIL PROTECTED]
> Sent: January 12, 2007 11:38 AM
> To: Beauford
> Cc: 'PHP'
> Subject: Re: [PHP] Forms and destroying values
>
> Beauford wrote:
> > So the answer is, there is no way to destroy the values. Question
>
Hi,
Anyone know how I can strip slashes from $_POST variables. I have tried
about a hundred different ways of doing this and nothing works.
i.e.
if(!empty($_POST)){
foreach($_POST as $x => $y){
$_POST[$x] = stripslashes($y);
}
}
This came about after someone tried to enter O'Toole in a form, an
the
form redisplays after the user has input invalid data.
All this is being done on the same page.
> -Original Message-
> From: Jim Lucas [mailto:[EMAIL PROTECTED]
> Sent: January 14, 2007 1:02 AM
> To: Beauford
> Cc: PHP
> Subject: Re: [PHP] Stripslashes
>
> Beau
I just turned off get_magic_quotes in my PHP.ini, but not sure if the
hosting company has it on or not once I upload the site.
> -Original Message-
> From: Beauford [mailto:[EMAIL PROTECTED]
> Sent: January 14, 2007 11:34 AM
> To: 'PHP'
> Subject: RE: [PHP
--Original Message-
> From: Larry Garfield [mailto:[EMAIL PROTECTED]
> Sent: January 15, 2007 12:02 AM
> To: Beauford; PHP-General
> Subject: Re: [PHP] Stripslashes
>
> Copying this back on list where it belongs...
>
> If the apache process on the server is configured to suppor
Hi,
Hopefully this is my last question so I can put this site to bed. Is there a
good article that explains how to do the patterns for eregi.
I have read tons of articles, but none really explains what everything
means. Like why some things have square brackets and some have round, what
does the
I have file which I use for validating which includes the following
function:
function invalidchar($strvalue)
{
if(!ereg("^[[:alpha:][:space:]\'-.]*$", $strvalue)) {
return "*";
}
}
Here is the problem. If I don't use the function, like below, there is no
> -Original Message-
> From: Roman Neuhauser [mailto:[EMAIL PROTECTED]
> Sent: January 15, 2007 7:09 PM
> To: Beauford
> Cc: PHP
> Subject: Re: [PHP] I lied, another question / problem
>
> # [EMAIL PROTECTED] / 2007-01-15 16:31:32 -0500:
> > I have f
> -Original Message-
> From: Roman Neuhauser [mailto:[EMAIL PROTECTED]
> Sent: January 15, 2007 7:09 PM
> To: Beauford
> Cc: PHP
> Subject: Re: [PHP] I lied, another question / problem
>
> # [EMAIL PROTECTED] / 2007-01-15 16:31:32 -0500:
> > I have f
> -Original Message-
> From: 'Roman Neuhauser' [mailto:[EMAIL PROTECTED]
> Sent: January 15, 2007 7:53 PM
> To: Beauford
> Cc: 'PHP'
> Subject: Re: [PHP] I lied, another question / problem
>
> # [EMAIL PROTECTED] / 2007-01-15 18:33:31 -0500
works the
way it is supposed to.
I would however like to know what the issue is with the original code, or if
this is actually a bug in PHP.
Thanks
> -Original Message-
> From: Beauford [mailto:[EMAIL PROTECTED]
> Sent: January 15, 2007 7:22 PM
> To: 'PHP'
> Subj
s a value. Basically
this has just broken my whole site.
If anyone can figure this out let me know, right now I just have to put this
site up with no validation.
Thanks
> -Original Message-
> From: Beauford
> Sent: January 15, 2007 10:26 PM
> To: 'PHP'
> Subject:
if(!$formerror) blah blah.
This is where the problem is because if null or "" is being returned then
$formerror has a value which breaks the above if.
I hope this helps.
Thanks
> -Original Message-
> From: Roman Neuhauser [mailto:[EMAIL PROTECTED]
> Sent: January 16,
> This is a bad way to test for a value also, unless you
> expecting only TRUE or FALSE and you are sure that it will
> always be set.
> Otherwise you should do something like this
>
> if ( isset($formerror) && $formerror != '' ) {
> // Display Error
> }
The problem here is this. formerr
> $formerror = array();
>
> ... do your validation here which may/may not add to the array.
>
> if (!empty($formerror)) {
>echo "Something went wrong!";
>print_r($formerror);
> } else {
>echo "Everything is ok!";
> }
As I said the problem is that a value is being returned, how I ch
I hope I can explain this so I can get this figured out, 'cause if not I may
just have to find an alternative to PHP. I can't be wasting 3 and 4 days on
something as simple as this.
Below are 3 validation routines. When I first enter the page 'Optional' is
displayed for all of them as it should be
Your right. I have been sitting here at this computer for 3 days straight
with all the various problems, and I missed this. I need a break, I need a
KitKat.
Thanks to the list for all the help over the last couple of days. I'm going
to watch CSI and get away from this.
> Take a little closer
t)) { $formerror['event'] = $result;
function ValidateString($string) {
if(!preg_match("/^[-A-Za-z0-9_.' ]+$/", $string)) {
return "Invalid Characters";
}
Thanks
> -Original Message-
> From: Jim Lucas [mailto:[EMAIL PROTECTE
> -Original Message-
> From: Jim Lucas [mailto:[EMAIL PROTECTED]
> Sent: January 17, 2007 8:10 PM
> To: Jim Lucas
> Cc: Beauford; 'PHP'
> Subject: Re: [PHP] One last try at this!
>
> Jim Lucas wrote:
> > Beauford wrote:
> >> This is
Hi,
First off thanks to everyone for the previous help. I managed to get it
sorted out and used several of the suggestions made.
I am trying to do a DESC table_name using PHP so it looks like it would it
you did it from the command line.
i.e.
| Field | Type | Null | Key | Default |
I'm trying to get this but not quite there. I want to allow the following
characters.
[EMAIL PROTECTED]&()*;:_.'/\ and a space.
Is there a special order these need to be in or escaped somehow. For
example, if I just allow _' the ' is fine, if I add the other characters,
the ' gets preceded by a \
> -Original Message-
> From: Paul Novitski [mailto:[EMAIL PROTECTED]
> Sent: January 22, 2007 6:58 PM
> To: PHP
> Subject: Re: [PHP] preg_match problem
>
> At 1/22/2007 03:04 PM, Beauford wrote:
> >I'm trying to get this but not quite there. I
> if (preg_match('/[EMAIL PROTECTED]&()*;:_.'\\/ ]+$/', $string))
>
> Use single quotes and double back-slashes. PHP strings also
> have escape sequences that use the back-slash as escape
> character, that's why you have to double them. And single
> quotes to avoid the $ character interpr
> You need to escape that forward slash in the character class:
>
> preg_match("/[EMAIL PROTECTED]&()*;:_.'\/
>
> Also, you've got only two backslashes in your char class. PHP is
> reducing this to a single backslash before the space character. I
> think you intend this to be two b
> You don't need to escape the apostrophe if the pattern isn't
> quoted with apostrophes in PHP or delimited by apostrophes in
> the PREG pattern. But generally there's no harm in escaping
> characters unnecessarily; it just makes for messier code.
>
> Here is a simple test of the regexp I rec
> Here is my rendition of what I think you are looking for.
>
> $str = 'tab( )/space( )/[EMAIL PROTECTED]&*();:...';
>
> if ( preg_match('|[EMAIL PROTECTED]&*();:_. /\t-]+$|', $str) ) {
> echo 'success';
> } else {
> echo 'failure';
> }
>
Here is the problem, and it is strange.
Hi Jim,
Thanks for all the help, but where is the link.
> Here is a link to a page that has this on it, but with the added "'"
>
> Plus a link to the source code for it.
>
> Jim
>
> --
> PHP General Mailing List (http://www.php.net/) To
> unsubscribe, visit: http://www.php.net/unsub.php
>
Hi,
I previously had some issues with preg_match and many of you tried to help,
but the same problem still exists. Here it is again, if anyone can explain
to me how to get this to work it would be great - otherwise I'll just remove
it as I just spent way to much time on this.
Thanks
Here's the
t
be.
The nocomments and invalidchars are constants.
Thanks
> -Original Message-
> From: Ray Hauge [mailto:[EMAIL PROTECTED]
> Sent: February 17, 2007 9:45 AM
> To: Beauford
> Cc: PHP
> Subject: Re: [PHP] LOL, preg_match still not working.
>
> Maybe you just c
of the preg_* errors disappeared since then.
>
> HTH,
> Vahan
>
>
> Steffen Ebermann wrote:
> > Addendum: I encountered a problem when the string contains
> linebreaks. Maybe
> > adding \n\r into the brackets fixes your problem.
> >
> >
> > On S
ke out the ! and period from my example and leave the new lines in, it
works fine.
Thanks
> -Original Message-
> From: Gregory Beaver [mailto:[EMAIL PROTECTED]
> Sent: February 17, 2007 12:21 PM
> To: Beauford
> Cc: PHP
> Subject: [PHP] Re: LOL, preg_match still not
match still not working.
If you want help, you must provide some example text strings that are to be
matched. You keep posting your pattern and that's the problem.
Beauford wrote:
> Mails been down since this morning (sorry, that's yesterday morning).
> Anyway, not sure if this
n it wants to.
Thanks
-Original Message-
From: Janet Valade [mailto:[EMAIL PROTECTED]
Sent: February 18, 2007 11:07 AM
To: Beauford
Subject: Re: [PHP] Re: LOL, preg_match still not working.
Perhaps the code in your email, that is working for other people, is not
the same code that you ar
I downloaded this 'upload and resize image' script, and since I have no idea
what I am looking at as this is something I have never done, could someone
have a look and see what the problem might be. I've been searching around
but haven't come across anything that makes any sense yet.
When a pictu
php-general@lists.php.net
> Subject: Re: [PHP] Re: Upload and resize file
>
> On Thursday 23 August 2007 14:50, Al wrote:
> > Suggest you find another script. That one is weird and not
> simple PHP
> > code, which will do your task easily.
>
> just my thou
Not to sound like a total nob, but how do I get Apache 1.3.36 to use PHP5. I
have both 4 and 5 installed, but it still uses 4. I never had a problem with
4.
I read the followed the INSTALL file for PHP5, below. I reinstall Apache as
well and nothing - step 11.
I tried putting LoadModule php5_modu
Does anyone else have this problem with the list. It seems that every time I
check my email there is one or more messages from the list that royally
screws up Outlook. I usually have to delete all list messages from the
actual server and reboot. It only happens with emails from
[EMAIL PROTECTED]
J
Aside from my previous gd problems, here's another problem. It appears that
PHP5 (for Windows anyways) does not support MySQL (which in itself is
riduculous), but here's my problem. I have a script I just downloaded that
works perfectly on Linux/Apche/MySQL/PHP5, but when I run it on Windows 2000
w
une 26, 2006 4:08 PM
To: Beauford
Subject: Re: [PHP] PHP 5, Windows, and MySQL
Activating MySQL in PHP 5 is pretty simple. Open the php.ini file and
uncomment the line for the extension that you want to use--php_mysql.dll or
php_mysqli.dll. Restart the web server.
Using the mysql functions is
t: Monday, June 26, 2006 8:13 PM
To: php-general@lists.php.net
Subject: [PHP] Re: PHP 5, Windows, and MySQL
I've got it running fine on my windows.
Mysql 5.0.19
PHP 5.1.4
I just activate php_mysql.dll and php_mysqli.dll.
Which versions of php and mysql are you using?
""Beaufo
ne 0
Thanks
-Original Message-
From: Janet Valade [mailto:[EMAIL PROTECTED]
Sent: June 26, 2006 7:43 PM
To: Beauford
Subject: Re: [PHP] PHP 5, Windows, and MySQL
Well, I don't know what you mean by a known issue. All your message says is
that PHP 5 does not support MySQL. Yes, it d
One more in my recent woes. The last elseif does not work in the code below
- even if the string is correct it always says it's incorrect. Even if I
remove everything else and just have the ereg satement is doesn't work
either.
The code below is in a function and $_POST['password1'] is passed to t
Neither one will work.
-Original Message-
From: Jeremy Schreckhise [mailto:[EMAIL PROTECTED]
Sent: June 27, 2006 11:37 AM
To: 'Beauford'; php-general@lists.php.net
Subject: RE: [PHP] Re: PHP 5, Windows, and MySQL
But is libmysql.dll the dll from mysql; the one packaged with
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: June 27, 2006 12:58 PM
To: Beauford
Cc: PHP-General
Subject: Re: [PHP] Ereg problem
On Tue, 2006-06-27 at 12:14, Beauford wrote:
> One more in my recent woes. The last elseif does not work in the code
>
Hi,
I'm just curious, because I come across this from time to time.
Why does the code below work on Windows and not on Linux. PHP is 5.0 on
Linux and 4.4 on Windows (still can't get 5 on Windows). The code at the
very bottom is how I got it to work on Linux. Also, why is it with the same
setup I
Good luck. I have tried 1001 ways to try and get PHP 5.xx to work on Windows
with no luck. Everyone says it's simple, but I believe there is a bug in PHP
5. I have no problem in Linux, but on Windows - that's another story. If you
do a search of the archives for this list I'm sure there are tons of
Hi,
I have a form which I want to check for inappropriate words before it is
posted. I have used explode to put the string into an array using a space as
the delimiter and then I check it against another array that contains the
inappropriate words.
I then replace the inappropriate words with *'s a
_
From: Eric Butera [mailto:[EMAIL PROTECTED]
Sent: September 13, 2006 1:07 PM
To: Beauford
Cc: php
Subject: Re: [PHP] Question on explode and join.
On 9/13/06, Beauford <[EMAIL PROTECTED]> wrote:
Hi,
I have a form which I want to check for inappropriate words before it is
pos
there are more I
haven't discovered yet. I haven't had much time to play around with it since
earlier today, so I haven't experimented with it, but ideas are welcome.
Thanks
-Original Message-
From: Ducarom [mailto:[EMAIL PROTECTED]
Sent: September 13, 2006 2:26 PM
To: Bea
I read your email, but I'm not using sessions and not really planning too.
But some of your code may be able to be modified to do what I need.
Thanks for the input.
B
_
From: Dave Goodchild [mailto:[EMAIL PROTECTED]
Sent: September 14, 2006 8:52 AM
To: Beauford
Subject: Re:
Is there a way I can use <% %> instead of for the opening and closing
tags of a php script. I thought I read this somewhere but can't find
anything on it now.
Is there something that I could do with override php.ini command? I don't
have access to the php.ini file on this server.
Thanks
B
EMAIL PROTECTED]
Sent: September 22, 2006 8:02 PM
To: Beauford
Cc: PHP
Subject: Re: [PHP] Override php.ini
On Fri, September 22, 2006 11:42 am, Beauford wrote:
> Is there a way I can use <% %> instead of for the opening and
> closing tags of a php script. I thought I read this somew
Hi,
I have a MySQL database with a date field and a bunch of other fields. The
date field is in the format - 01/01/2006. What I want to do is query the
database and create a table that shows just the year and how many instances
of the year there is. I have been taxing my brain for a simple solutio
gured
I'd need to use PHP to maybe put it in an array first or something.
Thanks
-Original Message-
From: Joe Wollard [mailto:[EMAIL PROTECTED]
Sent: October 28, 2006 10:30 PM
To: Ed Lazor
Cc: Beauford; PHP
Subject: Re: [PHP] Query question
Agreed, this should go to a MySQL list.
This is what I finally figured out, which works just perfectly.
select count(date) as count, substring(date,8) as year from stats group by
year;
Thanks to all for the input.
-Original Message-
From: Joe Wollard [mailto:[EMAIL PROTECTED]
Sent: October 29, 2006 12:15 AM
To: Beauford
Cc
to 8 and all was well. Beats me.
B
-Original Message-
From: Satyam [mailto:[EMAIL PROTECTED]
Sent: October 29, 2006 2:14 AM
To: Beauford; 'PHP'
Subject: Re: [PHP] Query question
If that works then you have a problem: you are storing dates as a plain
string ( varc
I don't see this as a particular problem as the data will always be the
same. Now under other circumstances in another database, I can see what you
are saying.
-Original Message-
From: Satyam [mailto:[EMAIL PROTECTED]
Sent: October 29, 2006 4:30 AM
To: Beauford; 'PHP'
Su
I am working on a website for a friend that is being hosted by a third party
(which uses Linux) and I don't have access to the php.ini or any other
system files.
The problem I am having is this. When an email is sent from the website and
the user receives it, it says it is from [EMAIL PROTECTED] i
Can you be more specific. I only see 4 parameters and none of them apply.
-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: October 31, 2006 9:13 PM
To: Beauford
Cc: PHP
Subject: Re: [PHP] php.ini & ini_set
Beauford wrote:
> I am working on a website for a friend
D]");
It still says it comes from:
Nobody [EMAIL PROTECTED]; on behalf of; Registrar
[EMAIL PROTECTED]
Thanks
-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: October 31, 2006 9:38 PM
To: Beauford
Cc: 'PHP'
Subject: Re: [PHP] php.ini & ini_set
Beauford wro
October 31, 2006 9:38 PM
To: Beauford
Cc: 'PHP'
Subject: Re: [PHP] php.ini & ini_set
Beauford wrote:
> Can you be more specific. I only see 4 parameters and none of them apply.
Oops sent you to the wrong page.
http://www.php.net/manual/en/function.mail.php
There are 5 paramete
Does the PHP list not monitor spam or filter out viruses? I am getting a lot
of this junk coming through the list. I am also getting some directly to
this address, but obviously that is out of the lists control.
Thanks
B
Hi,
I am trying to install vBulletin and keep getting this error: Fatal error:
Call to undefined function: gzinflate().
The only thing I can find on this is that zlib needs to be configured with
PHP at compile time. So I reinstalled PHP using the following:
./configure --with-mysql --with-apach
al Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: December 6, 2006 7:35 PM
To: Beauford
Cc: php-general@lists.php.net
Subject: Re: [PHP] PHP Installation question
Beauford wrote:
> Hi,
>
> I am trying to install vBulletin and keep getting this error: Fatal error:
> Call
een
included in either version of Slack. So I think I'm just going around in
circles with this.
Thoughts..
B
-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: December 7, 2006 12:15 AM
To: Beauford
Cc: php-general@lists.php.net
Subject: Re: [PHP] PHP Installation ques
On the old PC zlib.h is in /usr/local/inlude. On the new PC it's in
/usr/include and /usr/include/linux. I'm in the process of reinstalling PHP,
but I have my doubts.
Thanks
-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: December 7, 2006 8:21 PM
To: Beaufo
Solved. Ditched Slackware 10 and installed Slackware 11. Both were installed
the exact same way, so who knows
Thanks to all.
-Original Message-
From: Ryan Creaser [mailto:[EMAIL PROTECTED]
Sent: December 7, 2006 10:05 PM
To: Beauford
Cc: php-general@lists.php.net
Subject: Re
Not sure if this can be done with PHP, or if I would need to use a java
script or something. If anyone has any ideas it would be appreciated.
I have a video on my site and I want something to say that the video is
loading and then disappear once the video starts.
Thanks again.
--
PHP General M
Hi,
I have a page with a form on it which posts to itself. The problem is when
someone refreshes the page it enters the data into the DB again. How do I
clear these variables so that doesn't happen. I tried the unset function,
but no luck. I really don't want to use sessions or cookies as this is
> -Original Message-
> From: Richard Lynch [mailto:[EMAIL PROTECTED]
> Sent: December 18, 2006 3:46 PM
> To: Beauford
> Cc: PHP
> Subject: Re: [PHP] Clearing POST variable on page refresh
>
> On Sun, December 17, 2006 4:59 pm, Beauford wrote:
> > I have
Hi,
I am trying to get a program, Captcha v1.0, working and not having much
luck. The program says I need PHP version 4.3.10 or later or PHP version 5
and GD Library version 2.0 or later with JPEG support.
I know I have PHP 5, but not sure about the GD Library. I was reading on one
page I was on
The following are the errors I am getting - quite lengthy.
Thanks
$ make
make all-recursive
make[1]: Entering directory `/home/beauford/gd-2.0.33'
Making all in config
make[2]: Entering directory `/home/beauford/gd-2.0.33/config'
make[2]: Nothing to be done for `all'.
m
Hi,
I just upgraded to PHP 5.1.4 and now none of my sites will connect to MySQL.
I keep getting the error:
Fatal error: Call to undefined function mysql_connect()
I enabled php_mysql.dll in php.ini as one article suggested, but still no
go.
Any suggestions?
Thanks
Beauford
--
PHP General
Hi,
I have a form with about 20 fields in it and have two drop down menus in
which the second one changes depending on the previous one. This is done
with a javascript which reloads the page.
The problem with this is that everything the user has put in so far gets
erased when the page reloads. I
Hi,
I have a form in which a drop down field is populated from a MySQL database.
I am also using sessions.
The problem is this. After I submit the form the session variable only shows
the part of the input before the space.
Example: if I choose Niagra Falls from the drop down list, then I only s
Thanks - Done that though. It shows the way it should be.
Example: Niagara Falls
-Original Message-
From: Brad Bonkoski [mailto:[EMAIL PROTECTED]
Sent: May 31, 2006 2:28 PM
To: Beauford
Cc: php-general@lists.php.net
Subject: Re: [PHP] Session variables and words with spaces
Perhaps
Not sure why I would get a parse error, but that did correct the problem. I
just completely missed the single quote. I never even clue'd in when I
looked at the source of the page.
Sometimes another pair of eyes does the trick. Maybe it's time for a break.
Thanks
>> I'm surprised you're not get
Yep, I see that now. I really need to take a break - been at this way to
long.
Thanks to all.
-Original Message-
From: Brad Bonkoski [mailto:[EMAIL PROTECTED]
Sent: May 31, 2006 3:02 PM
To: Beauford
Cc: php-general@lists.php.net
Subject: Re: [PHP] Session variables and words with
Hi,
I am trying to get GD working so I can use a captcha script and not having
much luck. I can get it to work in Windows, but not Linux.
I have seen a few comments suggesting that PHP needs to be compiled with the
GD switch. Is there another way to do this? I have PHP, MySQL and Apache
installe
ks.
B
-Original Message-
From: Ray Hauge [mailto:[EMAIL PROTECTED]
Sent: June 12, 2006 7:35 PM
To: php-general@lists.php.net
Cc: Beauford
Subject: Re: [PHP] GD
On Monday 12 June 2006 16:11, Beauford wrote:
> Hi,
>
> I am trying to get GD working so I can use a captcha script and not
&g
Hi,
If I were to have something like the following, what is the best way (or
best practice) to reload the page and display the error - or is there a
better way to do this. I want to keep the site uniform and don't want errors
popping up and making a mess.
Thanks
B
-
1 - 100 of 233 matches
Mail list logo