Tris...
The name attribute on forms is not usually needed, and I have used the
id attribute before and they work fine. Do you have names on each
input, select, or any of the other form elements you may have? Use
these to extract the form information, and it should work just fine.
--
Jason
come up with a
solution.
--
Jason Giangrande <[EMAIL PROTECTED]>
http://www.giangrande.org
http://www.dogsiview.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
?
--
Jason Giangrande <[EMAIL PROTECTED]>
http://www.giangrande.org
http://www.dogsiview.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
seems to work though:
require_once 'settings/db.php';
Strange.
--
Jason Giangrande <[EMAIL PROTECTED]>
http://www.giangrande.org
http://www.dogsiview.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Kelly Hallman wrote:
Apr 9 at 11:12am, Jason Giangrande wrote:
You shouldn't serialize() objects prior to assign to a session variable.
The default session handler automatically serializes the data. Assigning a
serialized object value to a session just adds redundancy and overhead.
Act
Kelly Hallman wrote:
Apr 9 at 1:44am, Jason Giangrande wrote:
Jason Giangrande wrote:
I'm having a problem unserializing objects that are passed from page to
page with sessions. Registered globals is disabled so I am using the
$_SESSION array to store session variable
When I var
Jason Giangrande wrote:
I'm having a problem unserializing objects that are passed from page to
page with sessions. Registered globals is disabled so I am using the
$_SESSION array to store session variable and am not using
session_register(). Here's what I'm doing.
On fir
re overhead
than storing them in a file or database. If I was to guess, storing
them in a database might be less taxing.
--
Jason Giangrande <[EMAIL PROTECTED]>
http://www.giangrande.org
http://www.dogsiview.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jason Wong wrote:
On Friday 09 April 2004 11:07, Jason Giangrande wrote:
Jason Wong wrote:
What does the php error have to say about it?
php error? I'm sorry but I don't know what you are talking about.
Sorry, I meant to say "php error log". You should ALWAYS enable f
nction on a non-object in
/path/to/php/script/test.php on line 16
--
Jason Giangrande <[EMAIL PROTECTED]>
http://www.giangrande.org
http://www.dogsiview.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
rialize() it and store it in
$auth the value is bool(false) and not an object.
Can anyone tell me what I am doing wrong?
Thanks,
--
Jason Giangrande <[EMAIL PROTECTED]>
http://www.giangrande.org
http://www.dogsiview.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ED]' which any mail robot will clearly be able
to use. Any robots will not read the page until all PHP code has run
and returned the page as complete html.
--
Jason Giangrande <[EMAIL PROTECTED]>
http://www.giangrande.org
http://www.dogsiview.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Mike Zornek wrote:
Oops, forgot to send my original response to the list last time.
On 4/5/04 1:33 PM, "Jason Giangrande" <[EMAIL PROTECTED]> wrote:
What I usually do is create a select box that has only the values of the
enum. That way no one should be able to (in theory) put
Linux and you don't need any of the new fancy modules that can
be used with Apache 2.0.x use 1.3.x. If your server is running Windows
you will probably want to run Apache 2.0.x since that is supposed to run
much better under Windows than 1.3.x.
--
Jason Giangrande <[EMAIL PRO
e so many people using it now? What does
it have to offer then just creating files full of functions to include later
like I've always done?
It's really good for code organization and reuse. The ability to reuse
code every easily is it's best feature, IMO.
Also, Rob has good p
ready does.
---
---
As for Smarty, well, anything it can do, PHP can do better and faster,
without the overhead :)
Personally I've used Smarty only a little. It has it purposes in some
situations, but since I know PHP (somewhat anyway :-D) I wouldn't need
it for most projects.
--
Jaso
to make sure $_POST is empty for that page.
--
Jason Giangrande <[EMAIL PROTECTED]>
http://www.giangrande.org
http://www.dogsiview.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Raditha Dissanayake wrote:
How about just escaping out of php :-) and embedding the html direct?
Jason Giangrande wrote:
I'm looking for an easy way to write all my HTML using PHP. I could
do this with a bunch of print statements or the like, but that doesn't
seem like a real goo
ble to download a package marked beta with PEAR, or
does it need to be downloaded manually?
Thanks,
--
Jason Giangrande <[EMAIL PROTECTED]>
http://www.giangrande.org
http://www.dogsiview.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$text;
Test it and you will see that a space is added into the text without
replacing any of it.
--
Jason Giangrande <[EMAIL PROTECTED]>
http://www.giangrande.org
http://www.dogsiview.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
or printer
driver. Therefore, it would be very hard if not impossible to turn off
through server-side scripting or even with JavaScript.
--
Jason Giangrande <[EMAIL PROTECTED]>
http://www.giangrande.org
http://www.dogsiview.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
return true;
}
~}
~return false;
}
if (kick($ip)) {
echo "Sorry, the access is denied.";
}
It seems each ip address in the $file_ip has a new line on the end too,
so you need to remove that before the current ip address in $ip will
match anything that i
es with fatal error
global $db_name;
if (mysql_error()) {
die("Error " . mysql_errno() . ": " . mysql_error());
} else {
die("Could not connect to database, $db_name");
}
}
--
Jason Giangrande <[EMAIL PROTECTED]>
signature.asc
Description: This is a digitally signed message part
n happy with that allowance.
>
> HTH & HAND
>
> :-D
Thanks for your help guys. Cutting the ping timeout helped speed things
up quite a bit. I will also look into BigBrother and your other
suggestions. Thanks again.
--
Jason Giangrande <[EMAIL PROTECTED]>
http://www.
On Sat, 2003-11-29 at 12:20, Adam Maas wrote:
> why not try:
>
> passthru("ping $host");
>
> Adam
That still takes a little while to execute on multiple hosts, Plus I
need to modify the output of the command to print just the IP address
and discard the rest
c 1 $host), and while I could get that to work, since it
returns non-zero status if the host can not be contacted, it takes quite
a while to execute for even a few hosts at once.
Anyone ever do this king=d of thing before or have any suggestions on
what might work?
--
Jason Giangrande <[EMAI
av
> variable. It prints nothing when I try to print the variable.
>
>
> "Jason Giangrande" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Eric, If you want to check to see if $subnav is equal to "home" you want
> > to use ==
Eric, If you want to check to see if $subnav is equal to "home" you want
to use == and not =. Perhaps this is your problem.
Jason
On Thu, 2003-07-24 at 15:35, Eric Fleming wrote:
> Here is a snippet from the header file. You can see that I am just trying
> to determine what the value of the sub
Is the code you are trying to call $subnav from inside a function? If
so you will need to tell the function that by using the global keyword
(i.e. global $subnav;). Other than that the code you've shown looks
right to me.
Jason
On Thu, 2003-07-24 at 13:55, Eric Fleming wrote:
> I am having some
Jason
On Wed, 2003-07-23 at 16:13, Lars Torben Wilson wrote:
> On Wed, 2003-07-23 at 12:19, Jason Giangrande wrote:
> > When registered globals is set to off this does not effect the $PHP_SELF
> > variable right? In other words I should be able to call $PHP_SELF with
> > out
When registered globals is set to off this does not effect the $PHP_SELF
variable right? In other words I should be able to call $PHP_SELF with
out having to do this $_SERVER['PHP_SELF'], right?
Thanks,
Jason Giangrande
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
r them so I might as well get rid of
them. Thanks again.
Jason
On Tue, 2003-07-22 at 22:36, Curt Zirzow wrote:
> * Thus wrote Jason Giangrande ([EMAIL PROTECTED]):
> > Is there a way to delete array fields without resort the keys? The keys
> > of this particular array are the posi
reiterate, what I want to do is remove a key from an array but
not have the keys automatically reassigned.
Thanks,
Jason Giangrande
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
; look around the JS lists and sites for something that might give you a
> head start.
>
>
> justin
>
>
>
> On Sunday, July 20, 2003, at 02:37 PM, Jason Giangrande wrote:
>
> > I have a question about forms and PHP. Here's what I'm looking to do.
> >
other words, I would like the user to be able to check the
spelling without actually submitting the form.
Thanks,
Jason Giangrande
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
My problem is solved. Thank you to everyone who responded.
Jason
On Sun, 2003-07-13 at 18:33, David Nicholson wrote:
> Hello,
>
>
> This is a reply to an e-mail that you wrote on Sun, 13 Jul 2003 at 23:12,
> lines prefixed by '>' were originally written by you.
>
> Maybe the browser you are u
It's really strange because I type the following into the form field.
Test
Test
Test
And get this as output.
Test Test Test
Do form fields not preserve spacing or line breaks?
Jason
On Sun, 2003-07-13 at 17:45, David Otton wrote:
> On 13 Jul 2003 17:27:04 -0400, you wrote:
>
> >Perh
Perhaps. When getting text from a form field, what is substituted for a
newline (i.e. when someone hits enter).
Jason
On Sun, 2003-07-13 at 17:21, David Otton wrote:
> On 13 Jul 2003 17:01:24 -0400, you wrote:
>
> >I'm trying to replace newlines with something else. For this example
> >I'll us
I did not know about nl2br. Thanks.
But what if say I want to replace a newline with something else, say
. How would I do that?
Jason
On Sun, 2003-07-13 at 17:09, J. Cox wrote:
> "Jason Giangrande" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> &g
o replace the newlines
in. I tried this with a period and that works as expected. Can I not
replace newlines this way?
Thanks,
Jason Giangrande
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Never mind everyone, I figured it out. In this line:
$data_line = implode($separator, $data_array)."\n";
I was adding a newline when I didn't need too.
Jason
On Sat, 2003-07-12 at 17:03, Jason Giangrande wrote:
> I have written this function to rewrite the contents of a text
I have written this function to rewrite the contents of a text file
after it's been updated. I store lines of data in an array and then
implode them into one string. The problem is that I'm getting an extra
line break (in other words a blank line is showing up in my text file)
after I modify a pa
ot talking millions, or even thousands of users, more like a few
hundred a day. If using files should not be a problem, I would much
rather use that method in this particular project.
Thanks again,
Jason
On Fri, 2003-07-11 at 21:27, Michael Smith wrote:
> Jason Giangrande wrote:
> >
ain them I only get one value. Anyone
have any ideas why?
Regards,
Jason Giangrande
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks for the help guys.
Jason
On Fri, 2003-07-11 at 15:43, David Nicholson wrote:
> Hello,
>
>
> This is a reply to an e-mail that you wrote on Fri, 11 Jul 2003 at 20:37,
> lines prefixed by '>' were originally written by you.
> > Any ideas on how I can print the lines of my file in reverse o
Any ideas on how I can print the lines of my file in reverse order,
then? Does fgets() always process from the beginning of the file even
if you open the file with the pointer at the end? I tried to get the
line count of the file and go through each line of the file backwards
but that doesn't see
es at the top of the file.
Thanks,
Jason Giangrande
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks. I'm new to PHP, but still I should have seen that. :-)
Jason
On Wed, 2003-07-09 at 18:44, David Nicholson wrote:
> Hello,
>
>
> This is a reply to an e-mail that you wrote on Wed, 9 Jul 2003 at 23:40,
> lines prefixed by '>' were originally written by you.
> > auth_user($_SESSION['logi
);
}
} else {
die ("Sorry, you are not logged in. Please log in and try again.");
}
}
Here's the code that calls the function which is in another script.
auth_user($_SESSION['login']);
var_dump($username);
Thanks,
Jason Giangrande
--
PHP General Ma
49 matches
Mail list logo