?php
include (../utils.inc);
$date = date(U);
$dateExpire = $date + 90 * 86400;
$code = jack;
$query = INSERT INTO CouponTable VALUES
('','$date','0','$code','preset','$dateExpire','3.75');
$result = mysql_query($query);
echo
Did you remember to open the database connection?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 11, 2005 1:34 PM
To: Dan McCullough
Cc: php-general@lists.php.net
Subject: Re: [PHP] Help with logic :(
?php
include
[EMAIL PROTECTED] wrote:
?php
include (../utils.inc);
$date = date(U);
$dateExpire = $date + 90 * 86400;
$code = jack;
$query = INSERT INTO CouponTable VALUES
('','$date','0','$code','preset','$dateExpire','3.75');
$result =
Cc: php-general@lists.php.net
Subject: Re: [PHP] Help with logic :(
?php
include (../utils.inc);
$date = date(U);
$dateExpire = $date + 90 * 86400;
$code = jack;
$query = INSERT INTO CouponTable VALUES
('','$date','0','$code','preset','$dateExpire','3.75
[EMAIL PROTECTED] wrote:
?php
include (../utils.inc);
$date = date(U);
$dateExpire = $date + 90 * 86400;
$code = jack;
$query = INSERT INTO CouponTable VALUES
('','$date','0','$code','preset','$dateExpire','3.75');
$result =
$result = mysql_query($query) or die(mysql_error());
On 10/11/05, Silvio Porcellana [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
?php
include (../utils.inc);
$date = date(U);
$dateExpire = $date + 90 * 86400;
$code = jack;
$query = INSERT
create a function to check if the rndnumber=couponcode row count = 0
if not then redo rndnumber if it does = 0 then insert rndnumber
On 10/10/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hey guys,
Having trouble coming up with a solution to this idea I am trying to
implement.
I have a
On Mon, October 10, 2005 3:24 pm, Dan McCullough wrote:
create a function to check if the rndnumber=couponcode row count = 0
if not then redo rndnumber if it does = 0 then insert rndnumber
N!
You are creating a RACE CONDITION in which ONE user might generate a
Hi All,
My very first post to this group as I'm a freshly spanked new born php
baby. Hope I have the correct stop for noob tech questions. Please
re-direct me if I have it wrong. I've been doing web dev for a quite while
with a variety of methods (html, xhtml/css, cfml, flash/as, on and
On Tue, 2005-09-20 at 18:41, jay thompson wrote:
Hi All,
My very first post to this group as I'm a freshly spanked new born php
baby. Hope I have the correct stop for noob tech questions. Please
[-- SNP --]
Try verifying your include path in php.ini for the NT version.
Hi All,
My very first post to this group as I'm a freshly spanked new born
php
baby. Hope I have the correct stop for noob tech questions.
Welcome :)
[source]
First guess: On your live server the ini-value error_reporting is switched
to report anything but notices and warnings or
jay thompson wrote:
index.php:
?php
include 'content.php'; //sets the section title
echo $title;
?
?php
include 'navigate.php'; //sets appropriate navigation menu
echo $navigate;
?
?php
echo $content; //loads body text
?
There is no need to switch
On Tue, 2005-09-20 at 19:14, Thorsten Suckow-Homberg wrote:
Hi All,
My very first post to this group as I'm a freshly spanked new born
php
baby. Hope I have the correct stop for noob tech questions.
Welcome :)
[source]
First guess: On your live server the ini-value
Thanks Thorsten and Rob,
Sry my bogus code was error filled. This is not the case with the
actual
code. I was a little quick in removing the large amounts of text that are
actually contained in the cases and case 1,2,3: is just to say there are
many more cases. Could this be a problem
On Tue, 2005-09-20 at 19:41, jt wrote:
Thanks Thorsten and Rob,
Sry my bogus code was error filled. This is not the case with the
actual
code. I was a little quick in removing the large amounts of text that are
actually contained in the cases and case 1,2,3: is just to say there are
[...]
Try the following:
1) include() will only trigger a warning if the requested file is not within
the include path. Thus, to make sure the file is found, you should use
require() which triggers a fatal error and prevends the script from being
executed if the given filename as the
Nahalingam N. Kanakavel wrote:
hi all,
If any scripts available to draw a list view.
Plz help me, by giving some links or scripts avilable with you.
What is a list view?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi there!
What do you mean with listview? Of what?
/G
http://www.varupiraten.se/
- Original Message -
From: Nahalingam N. Kanakavel [EMAIL PROTECTED]
To: PHP php-general@lists.php.net
Sent: Monday, September 12, 2005 11:05 AM
Subject: [PHP] help me to draw a listview in my website
hi,
I want to display several fields of values as a row, with header such as
-- |
Name age mail-id | Header part, by clicking over this I want to sort the
--- | rows
Maybe this could be something? I haven't tried it though.
http://www.activewidgets.com/grid/
/Jesper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ian Barnes wrote:
Hi Ryan,
I am including a different class.inc.php file each time the foreach loops.
Each one sits in a different dir. Yes, I do get that error.
My understanding of OOP is that I could null the $sdk variable and re-init
it when the loop starts again..
You'd be right if
Hi Thomas,
Thanks for the help. That didn't work though ...
Its now set to be $SDK = new sdk;
Nothing :(
-Original Message-
From: Thomas [mailto:[EMAIL PROTECTED]
Sent: 08 September 2005 09:08 AM
To: 'Ian Barnes'
Subject: RE: [PHP] Help with Class
Sorry for not explaining ... [code
Ian Barnes wrote:
require_once (
$fetchd['path'].'sdk/ipbsdk_class.inc.php' );
What is the above line doing? It looks like you are trying to redeclare
the ipbsdk class each time around the loop which is illegal in php. You
can't do :
class ipbsdk {
: Ryan Creaser [mailto:[EMAIL PROTECTED]
Sent: 09 September 2005 12:34 AM
To: Ian Barnes
Cc: PHP General
Subject: Re: [PHP] Help with Class
Ian Barnes wrote:
require_once (
$fetchd['path'].'sdk/ipbsdk_class.inc.php' );
What is the above line doing? It looks
I would have guessed unset($sqk); to work, but also try $sdk = null;
Jason
On 9/7/05, Ian Barnes [EMAIL PROTECTED] wrote:
Hi,
I am writing a site where I need to access multiple classes of the same
name
located under certain directories. The reason for each directory is
because
Hi,
Thanks for the help, but none of those worked.
Anyone else got any suggestions? Or possibly another way of achieving this ?
Cheers
Ian
_
From: Jason Davidson [mailto:[EMAIL PROTECTED]
Sent: 07 September 2005 05:47 PM
To: Ian Barnes
Cc: PHP General
Subject: Re: [PHP
Hi,
Thanks for the help, but none of those worked.
Anyone else got any suggestions? Or possibly another way of achieving this ?
Cheers
Ian
_
From: Jason Davidson [mailto:[EMAIL PROTECTED]
Sent: 07 September 2005 05:47 PM
To: Ian Barnes
Cc: PHP General
Subject: Re: [PHP
Wong HoWang wrote:
Dear all,
I'm trying to do like this but failed:
?php
ini_set('precision',16);
echo pi();
?
How can I get more digits after . ?
I am fairly sure that you have to use BCMath for this:
http://www.php.net/manual/en/ref.bc.php
Give it a go and see what happens! :)
but my server configure don't have bcmath enabled, is there any other way to
do so?
Torgny Bjers [EMAIL PROTECTED] wrote:[EMAIL PROTECTED]
Wong HoWang wrote:
Dear all,
I'm trying to do like this but failed:
?php
ini_set('precision',16);
echo pi();
?
How can I get more digits after . ?
Wong HoWang schrieb:
but my server configure don't have bcmath enabled, is there any other way to
do so?
Since the internal routines of PHP have limited precision, you these
options:
- Find a way to activate bcmath (not likely to happen on a shared
hosting account)
- Find an external program
http://us3.php.net/manual/en/ini.core.php#ini.precision
precision sets the number of significant digits, *NOT* the number of
digits displayed after the decimal point.
If you want to get pi out to 16 decimal places you need a precision
of *17* because the beginning 3 is a significant digit.
Dear Jordan,
I know what you mean. But you may try this one and you will know:
?php
ini_set('precision',200);
echo pi();
?
the result is the same as 16!!!
So that's why I ask this question! I am not stupid like that!
Please help, thx!
Jordan Miller [EMAIL PROTECTED]
wrote:[EMAIL PROTECTED]
Hi -
The 'precision' ini value refers, I believe, only to float numbers, not
BC_math numbers (which are stored as strings). I believe the bcmath.scale
parameter is the one you need. It can be set via ini_set or bcscale() -
http://php.he.net/manual/en/function.bcscale.php
Perhaps you
Oops...I didn't see the earlier message that BC functions were not enabled
on your server. So, I'd have to concur with Oliver Grätz's suggestions, and
add some of my own:
- can you change hosts?
- are you allowed to install software in your own directory? You
may be able to
David
but it does not seem to be working.
Might be helpful for folks if you describe the nature of the fault
i.e. what you get back when you run this - at this stage there are a
multitude of possibilities...
raz
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi Raz
Good Point. It displays 'No data found' when it should display 'Data
found'
Thanks
David
-Original Message-
From: Raz [mailto:[EMAIL PROTECTED]
Sent: 26 August 2005 12:06
To: David Skyers
Cc: php-general@lists.php.net
Subject: Re: [PHP] Help Needed
David
but it does not seem
Leading back in the code, that would suggest that $nrows is not
greater than zero - could be a problem with $nrows then, and anything
associated with that, i.e. $stmt, whether there is content in the db
where REC_VALUE = 'uczmdsk1' etc. etc.
Work back down the chain and see if you can find
does the actual SQL statement bring back any info if you do it through
the oracle interface, perhaps the problem isnt php but the SQL statement.
HTH
Angelo
Raz wrote:
Leading back in the code, that would suggest that $nrows is not
greater than zero - could be a problem with $nrows then, and
]
Sent: 26 August 2005 13:14
To: Raz
Cc: David Skyers; php-general@lists.php.net
Subject: Re: [PHP] Help Needed
does the actual SQL statement bring back any info if you do it through
the oracle interface, perhaps the problem isnt php but the SQL
statement. HTH
Angelo
Raz wrote:
Leading back
David,
If I change the code to ($nrows = 1) then it displays 'Data found',
however if I have a REC_VALUE = 'does not exist' it still displays 'Data
found'
That would suggest that something is being returned - do you have
command line access or some other way to look at what is being
I would first start out by dumping the values of $_POST['gmev'] by using
print_r($_POST['gmev']);
Sounds to me like you're not getting the data that your expecting
from the form for some reason. Maybe $_POST['gmev'] is an array of
null values?
-Good Luck
On Aug 17, 2005, at 12:15 PM,
thanks for the reply...
after using the print_r($_POST['gmev']); and selecting all the checkboxes to
send to the form
the return is Array ( [0] = on [1] = on [2] = on [3] = on ). So the
values are missing.
don't really know how to proceed at this point.
any help is appreciated.
Joe Wollard
wherever you think you are adding data to the gmev array, you are
merely adding the on string. I would search your script for the
string on and you will find the problem.
what you need is the value in the HTML form to be the text you want
inserted into the array, such as:
input
:[EMAIL PROTECTED]
Sent: 17 August 2005 21:30
To: php-general@lists.php.net
Subject: Re: [PHP] Help correcting a form mailer problem...
thanks for the reply...
after using the print_r($_POST['gmev']); and selecting all the checkboxes to
send to the form
the return is Array ( [0] = on [1] = on [2
Hi
If the checkbox exists in the array it is selected... if it isn't there it's
not selected
That's my experience :)
-Original Message-
From: zedleon [mailto:[EMAIL PROTECTED]
Sent: 17 August 2005 21:30
To: php-general@lists.php.net
Subject: Re: [PHP] Help correcting a form mailer
] = on
1 and 3 are selected
-Original Message-
From: zedleon [mailto:[EMAIL PROTECTED]
Sent: 17 August 2005 21:30
To: php-general@lists.php.net
Subject: Re: [PHP] Help correcting a form mailer problem...
thanks for the reply...
after using the print_r($_POST['gmev']); and selecting all
@lists.php.net
Subject: Re: [PHP] Help correcting a form mailer problem...
Sorry, I believe you are mistaken here... you *can* specify a value
for each checkbox and have it come through. I have written scripts
that do this, and here is another example:
http://www.tizag.com/phpT/examples/formex.php/
all
: php-general@lists.php.net
Sent: Wednesday, August 17, 2005 5:28 PM
Subject: Re: [PHP] Help correcting a form mailer problem...
Sorry, I believe you are mistaken here... you *can* specify a value
for each checkbox and have it come through. I have written scripts
that do this, and here is another
Tom Chubb wrote:
I have changed it a bit, and don't have the old code now!!!
I saw a post which identified a problem using isset when $var = ; as
it returns true, so I changed my code to use...
if ($_GET['id'] != )
{ $article=$id.php;
if (file_exists($article)) { include $article; }
Tom Chubb wrote:
I am trying to create my own news system and to start with I'm using
static news pages until I get the db working properly.
I'm using the following code:
?php
if(!isset($_GET['id']))
{ $article=$id.php
if (file_exists($article)) { include $article; }
else { echo The
I have changed it a bit, and don't have the old code now!!!
I saw a post which identified a problem using isset when $var = ; as
it returns true, so I changed my code to use...
if ($_GET['id'] != )
{ $article=$id.php;
if (file_exists($article)) { include $article; }
Tom Chubb wrote:
I have changed it a bit, and don't have the old code now!!!
I saw a post which identified a problem using isset when $var = ; as
it returns true, so I changed my code to use...
the fact that you are using $id suggests you have register_globals on
- not recommended practice.
Thanks Jochem, useful info.
I've changed that now, but why is there still an Undefined index: id error?
Any ideas?
On 31/07/05, Jochem Maas [EMAIL PROTECTED] wrote:
Tom Chubb wrote:
I have changed it a bit, and don't have the old code now!!!
I saw a post which identified a problem using
Tom Chubb wrote:
Thanks Jochem, useful info.
I've changed that now, but why is there still an Undefined index: id error?
its a notice technically not an error.
and its showing up because you have error reporting set to show notices.
to be really purist/correct do it something like this:
if
Tom Chubb wrote:
The purist method is what I wanted.
dev'ing with E_ALL is a good thing, but turn off E_NOTICE on productions
sites... IMHO
in fact make sure your production sites don't output any php errors at all
(even if they occur!),
sure log them, but don't show - it makes it just a
I would recomend for sanity and clean code that you define your functions
outside of the file you will be calling it from and include that file in any
file you need to call a function from.
Here's a function that I defined in my db.php file.
You're declaring your function wrong.
You're doing:
function (function_name)
You should be doing
function function_name($arg1, $arg2, $arg3) // with as many comma
seperated arguments as you want.
or if you don´t want to pass any arguments
function function_name()
Try this out:
function
Thanks guys for all your help.
I've managed to get it working.
I tried calling the function from within the file and it turned out
that somehow I had messed up my include statement.
I understood about adding argument variables to the syntax, but I
needed to add a text argument as I couldn't think
You're talking about a table in a database, correct? Assuming the database
is MySQL, you would:
1. open a connection to the database
2. execute a SQL select statement to fetch the data
3. process the results, formatting them into HTML.
There are a number of tutorials on doing this, but it's
The following line:
$query_r = mysql_fetch_array($query)
Will pop off the first result from the query, you can avoid this problem by
using mysql_num_rows instead:
if( mysql_num_rows( $query ) 0 )...
Carlo Razzeto
Programmer
Mortgage Information Services
Phone: (216) 514-1025 ex. 1212
if( mysql_num_rows( $query_r ) 0 ) {
while( $currentResult = mysql_fetch_array( $query_r ) ) {
// do something with the result.
}
}
else {
echo 'No results.';
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Jesús Alain Rodríguez Santos wrote:
I have a query:
$query = mysql_query(SELECT event FROM table WHERE month = 'x' ORDER BY
day ASC);
I have all days of the month insert in day field: 1, 2, 3, 4, 5 ...
when I print the query:
if ($query_r = mysql_fetch_array($query)) {
-^
On 21 July 2005 22:19, Chris W. Parker wrote:
2. It will be a good idea to get out of the habit of breaking
in and out
of PHP like that. Instead just do: echo 'hi1';
Why? Some of us just strongly prefer the breaking in and out style -- I use
it almost exclusively. In my 10,000s of lines of
* Ford, Mike [EMAIL PROTECTED] :
On 21 July 2005 22:19, Chris W. Parker wrote:
2. It will be a good idea to get out of the habit of breaking in and
out of PHP like that. Instead just do: echo 'hi1';
Why? Some of us just strongly prefer the breaking in and out style -- I use
it almost
On 7/26/05, suma parakala [EMAIL PROTECTED] wrote:
Hi
I am retrieving data from postgresql and displaying it in form of table in
different rows.
my problem is when check box is clicked i need to change the color of the
row .agai when the check box is unclicked it should hold the old color.
suma parakala wrote:
Hi
I am retrieving data from postgresql and displaying it in form of table
in different rows.
my problem is when check box is clicked i need to change the color of
the row .agai when the check box is unclicked it should hold the old color.
Can any one please help me
On Thu, 2005-07-21 at 13:37 -0700, Dan Trainor wrote:
Hello, all -
I've been looking around for a function that would tell me if a $value
in a $key=$value array was empty, and I could not find one. So I
decided to make my own. Even if I am re-inventing the wheel, I thought
that the
From: Dan Trainor [mailto:[EMAIL PROTECTED]
Hello, all -
I've been looking around for a function that would tell me if a $value
in a $key=$value array was empty, and I could not find one. So I
decided to make my own. Even if I am re-inventing the wheel,
I thought that the practice
Mike Johnson wrote:
From: Dan Trainor [mailto:[EMAIL PROTECTED]
Hello, all -
I've been looking around for a function that would tell me if a $value
in a $key=$value array was empty, and I could not find one. So I
decided to make my own. Even if I am re-inventing the wheel,
I thought that
Dan Trainor wrote:
Mike Johnson wrote:
From: Dan Trainor [mailto:[EMAIL PROTECTED]
Hello, all -
I've been looking around for a function that would tell me if a $value
in a $key=$value array was empty, and I could not find one. So I
decided to make my own. Even if I am re-inventing the
Dan Trainor mailto:[EMAIL PROTECTED]
on Thursday, July 21, 2005 2:03 PM said:
I never see hi even if an array is set as such:
$vars = array(one,two,three,four,five);
That's because your function always returns true. If it finds a missing
value it returns true. If it doesn't find a
Chris W. Parker wrote:
Dan Trainor mailto:[EMAIL PROTECTED]
on Thursday, July 21, 2005 2:03 PM said:
I never see hi even if an array is set as such:
$vars = array(one,two,three,four,five);
That's because your function always returns true. If it finds a missing
value it returns
[snip]
Can someone tell me where I can find some detailed instructions on how
to install PHP on a Win2003 Server? I've tried to install it using the
PHP instructions, but it doesn't seem to be working, think I'm missing
something.
[/snip]
Did you install Apache?
--
PHP General Mailing List
[snip]
No, this is on a IIS6 install
[/snip]
Have you read this...
http://us2.php.net/manual/en/install.windows.iis.php ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yes, I have looked at that info, but am still having a problem.
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Sent: Monday, July 11, 2005 12:39 PM
To: Grosz, Steve (IPG IT); php-general@lists.php.net
Subject: RE: [PHP] Help installing on Win2003 server?
[snip
Grosz, Steve (IPG IT) wrote:
Yes, I have looked at that info, but am still having a problem.
snip
And that problem is? Error messages? Logs?
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Subject: Re: [PHP] Help installing on Win2003 server?
Grosz, Steve (IPG IT) wrote:
Yes, I have looked at that info, but am still having a problem.
snip
And that problem is? Error messages? Logs?
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List
On Mon, July 11, 2005 12:43 pm, Grosz, Steve (IPG IT) said:
I get a message in the browser saying it can't find the file, will find
standard .htm or .cfm files, but when I try to browse to a .php file,
nothing.
What is the EXACT error message?...
An error message isn't nothing -- It's an
Brian Dunning wrote:
I am cross-posting this to the PHP and the MySQL lists because I'm not
sure in which technology my solution will lie.
I have a pretty busy PHP/MySQL site that executes the following query a
lot:
select count(*) as `count` from terms;
My MySQL account was disabled by
Khalid [mailto:[EMAIL PROTECTED]
Sent: Sunday, July 10, 2005 12:21 AM
To: Brian Dunning
Cc: php-general@lists.php.net; mysql@lists.mysql.com
Subject: Re: [PHP] Help - need to quickly optimize a record count!
Brian Dunning wrote:
I am cross-posting this to the PHP and the MySQL lists
It is indexed, and it's fast, but nevertheless my ISP won't allow it
any longer. At least not as often as I need it.
On Jul 6, 2005, at 2:10 PM, Philip Hallstrom wrote:
If you have an index on the terms table that query should return
almost instantly...
Anyway, I'd start there first...
On Wed, July 6, 2005 1:43 pm, Brian Dunning said:
I am cross-posting this to the PHP and the MySQL lists because I'm
not sure in which technology my solution will lie.
I have a pretty busy PHP/MySQL site that executes the following query
a lot:
Define a lot
Every page hit?
select count(*)
Hi Richard - like I said, whatever the merits of the situation,
that's the query that the ISP is not permitting. As soon as I change
that, they'll reactivate the account. The ISP is PowWeb if anyone
else wants to take it up with them; I've already talked myself red in
the face.
On Jul
On Wed, July 6, 2005 5:42 pm, Christopher J. Bottaro said:
Warning: imagecreatefromstring() [function.imagecreatefromstring]: No JPEG
support in this PHP build
This is how I configured my php:
./configure --with-pgsql=/usr/local/postgres/ --with-apxs2=/usr/sbin/apxs
--with-gd
On Tuesday 05 July 2005 02:21, Marcos Mendonça wrote:
This works fine for links with id 0, 1 and 4. But i haven´t been able
to figure out how to match and replace links with id 2 and 3.
Works for me. Check whether $body_html really does contain what you're
looking for in id 2 id 3.
You may
Hello Bjørn-Erik,
Sunday, July 3, 2005, 1:09:29 PM, you wrote:
BED for can not start the myswli extension,
BED please check the PHP-configuration A link follows to:
BED http://localhost/phpMyAdmin/Documentation.html#faqmysql
- [1.20] I receive the error cannot load MySQL extension, please
BED
On Wed, June 22, 2005 10:16 pm, Joey said:
If I put this in the .php file, the results are as expected:
Value: % echo $value; %
If in the SAME file I put:
map name=FPMap0
area href=display_status.php?searchby=cust_nosearch=1value=% echo
$value % shape=rect coords=51, 1, 215, 34
/map
I'm
On Wed, June 22, 2005 3:57 pm, Brian Dunning said:
I'm using the following code in an effort to identify bots:
$client = $_SERVER['HTTP_USER_AGENT'];
if(!strpos($client, 'ooglebot') !strpos($client, 'ahoo') !strpos
($client, 'lurp') !strpos($client, 'msnbot'))
{
(Stuff that I do if
PROTECTED]
Sent: 08 June 2005 15:33
To: '[EMAIL PROTECTED]'
Subject: RE: [PHP] HELP! form validation
I can see that being a very nice way of doing it. I will get
on and give it
a go this afternoon. Thanks so much for the speedy response!
It just so happened that I, just last week
Hi Jim, Ive modified the code for the form by adding the
style info vars
to the relevant fields and set the var for the error style
but for some
reason the $error_var wont pick up the syle from $error_syle_var.
Eg:
$error_style = 'color: rgb(255,0,0)';
if(!$name){$err1 =
]'; Jim Moseby
Cc: php-general@lists.php.net
Subject: RE: [PHP] HELP! form validation
Hi Jim, Ive modified the code for the form by adding the
style info vars
to the relevant fields and set the var for the error style
but for some
reason the $error_var wont pick up the syle from
Eg:
$error_style = 'color: rgb(255,0,0)';
if(!$name){$err1 = $error_style; $error[]=*please enter
your name\n;}
snip!
Does it re-populate the fields with the previously entered data?
Yes, it does. I already have set the variables manually like
you say. Its
just the
-
From: Jim Moseby [mailto:[EMAIL PROTECTED]
Sent: 09 June 2005 15:49
To: '[EMAIL PROTECTED]'; php-general@lists.php.net
Subject: RE: [PHP] HELP! form validation
Eg:
$error_style = 'color: rgb(255,0,0)';
if(!$name){$err1 = $error_style; $error[]=*please enter
your name\n
On 6/8/05, Dave Sayer [EMAIL PROTECTED] wrote:
What would be the best method of validation a large (8 stages) form written
in php? The form validates using php at the moment but it only displays the
errors in a group, what we want it to do is highlight the fields or labels
for the incorrect
Hi phpers,
What would be the best method of validation a large (8
stages) form written
in php? The form validates using php at the moment but it
only displays the
errors in a group, what we want it to do is highlight the
fields or labels
for the incorrect entries (if that makes
-Original Message-
From: Jim Moseby [mailto:[EMAIL PROTECTED]
Sent: 08 June 2005 15:18
To: '[EMAIL PROTECTED]'
Subject: RE: [PHP] HELP! form validation
-Original Message-
From: Dave Sayer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 08, 2005 9:58 AM
To: php
JamesBenson wrote:
Hello all, Ive been working with PHP for my websites for a few months,
just attempted to build my own class, after reading all this stuff about
automated robots and XSS attacks etc decided to step up security a bit,
my result is an attempt to create a class for using the
V Kam wrote:
Hello all
I was trying to write an SPL Iterator for a MySQL
result set but not having any luck. Specifically I'm
not sure how to overload the key() and current/next()
methods.
Does anyone here have a working code sample that does
this, or can offer some guidance on how to overload
On Thu, May 12, 2005 9:27 am, K.S. TANG said:
I have a page using the Basic HTTP Authentication and works well before.
But this night, the server seems to not receiving any $_SERVER pass in
from
Web browsers.
if ( (!isset($_SERVER['PHP_AUTH_USER'])) || ($_SERVER['PHP_AUTH_USER']
!=
On Wed, 11 May 2005, Murray @ PlanetThoughtful wrote:
Hi All,
I'd very much appreciate some help building a regular expression for
preg_match_all that can differentiate between 'words' and 'phrases'.
For example, say I have a string that contains: 'this is an example of a
phrase'
I'd like to be
601 - 700 of 1991 matches
Mail list logo