SenTnel wrote:
Thank you Shawn!
Just to make sure, the long way IS the correct way?
Thanks again!
Shawn McKenzie wrote:
SenTnel wrote:
Hello!
Im new to programing and this is the situation I have with a first level
basic php tutorial: One of the samples uses a simple order form that
Thanks! :handshake:
Shawn McKenzie wrote:
SenTnel wrote:
Thank you Shawn!
Just to make sure, the long way IS the correct way?
Thanks again!
Shawn McKenzie wrote:
SenTnel wrote:
Hello!
Im new to programing and this is the situation I have with a first
level
basic php
Thanks for ideas, Nathan.
dunno if this was a typo on your part, but shouldnt it be,
ini_get(output_buffering) ?
yes...was getting tired last night. but it is correct in the code.
you might not be getting your settings from the ini file you think you are,
or there could be another one in
I think I solved this issue by using the -d option on the commandline.
When I use:
php -d output_buffering=On ./filename.php
the local value / active value of output_buffering is correct.
MKB
On Wed, Jun 11, 2008 at 5:54 AM, Mike Burba [EMAIL PROTECTED] wrote:
Thanks for ideas, Nathan.
On Wed, Jun 11, 2008 at 4:35 AM, Mike Burba [EMAIL PROTECTED] wrote:
I think I solved this issue by using the -d option on the commandline.
When I use:
php -d output_buffering=On ./filename.php
the local value / active value of output_buffering is correct.
kudos, and nice find ;)
-nathan
I am using Smarty templates to format HTML emails from the command
line (using cli). My typical command is:
php filename.php
However, and I am struggling with templates that are greater than 10k.
It looks like the Smarty output is getting truncated at about 10k.
Smarty uses output_buffering, so
On Tue, Jun 10, 2008 at 10:27 PM, Mike Burba [EMAIL PROTECTED] wrote:
I am using Smarty templates to format HTML emails from the command
line (using cli). My typical command is:
php filename.php
However, and I am struggling with templates that are greater than 10k.
It looks like the
+ PHP Problem (apc_fcntl_lock failed: Bad file
descriptor)
Scott McNaught [Synergy 8] wrote:
Hello,
I am running a production server with APC and php. We recently had a crash
where APC bombed out. When it does this, the server serves empty, white
pages.
Here is what the error_log says
Scott McNaught [Synergy 8] wrote:
Thanks for your reply. I will try upgrading it.
If anyone else has experienced this problem, please let me know.
Something else to note, I'm using pthread locking. I read about various
things and looked a presentation from Facebook's use of APC and the
I recently picked up an issue when I upgraded my IDE, where the browser
window timed out while I was debugging the code. I checked with support and
was told the problem was with php 4.4.8 which they'd upgraded to, so to
confirm I installed 4.4.8 and ran a test - and it seems there is a problem
Could you try setting the max_execution_time with ini_set and
confirming the status of it with ini_get ?
- Waage
2008/6/4 Arno Kuhl [EMAIL PROTECTED]:
I recently picked up an issue when I upgraded my IDE, where the browser
window timed out while I was debugging the code. I checked with support
-general@lists.php.net
Subject: Re: [PHP] Problem with script timing out in php 4.4.8
Could you try setting the max_execution_time with ini_set and confirming the
status of it with ini_get ?
- Waage
2008/6/4 Arno Kuhl [EMAIL PROTECTED]:
I recently picked up an issue when I upgraded my IDE, where
Uh, guys? Nevermind.
To quote someone's .sig: The truth was out there, but the lies
were in my mind. I cleared out a couple of mis-conceptions, and
the problem went away.
Sorry for the noise.
Robert Huff
--
PHP General
I'm working on a project that involves converting HTML to
XHTML. Not strictly sure this is a PHP issue, but testing (so far)
has eliminated other possibilities.
Can someone offer suggestions why, on the same server (Apache
2.2.8), this works:
!DOCTYPE HTML PUBLIC -//W3C//DTD
Robbert van Andel writes:
I've had this problem. It's because of the ? and ? that
surrounds your XML. Your php configuration probably has short
tags enabled.
Negative, Prior research found this problem, and the short
tags setting, which was promptly set to OFF,
What is the error message you are getting?
On Tue, Jun 3, 2008 at 11:37 AM, Robert Huff [EMAIL PROTECTED] wrote:
Robbert van Andel writes:
I've had this problem. It's because of the ? and ? that
surrounds your XML. Your php configuration probably has short
tags enabled.
I've had this problem. It's because of the ? and ? that surrounds your
XML. Your php configuration probably has short tags enabled. I have had to
use php to output this
?PHP echo ' ?xml version=1.0 encoding=utf-8?' ; ?
On Tue, Jun 3, 2008 at 7:25 AM, Robert Huff [EMAIL PROTECTED] wrote:
Scott McNaught [Synergy 8] wrote:
Hello,
I am running a production server with APC and php. We recently had a crash
where APC bombed out. When it does this, the server serves empty, white
pages.
Here is what the error_log says.
I have not yet found a resolution for this. There are no calls
Hello,
I am running a production server with APC and php. We recently had a crash
where APC bombed out. When it does this, the server serves empty, white
pages.
Here is what the error_log says.
[Mon Jun 2 11:20:36 2008] [apc-error] apc_fcntl_lock failed: Bad file
descriptor
[Mon Jun 02
I have a snippet of code like this which works fine in PHP4.
$secs = array();
foreach($_GET['sids'] as $sid){
$secs[$sid] = new CustomSecurity();
$secs[$sid]-set(array('customSecurityID' = $sid));
}
However, in PHP5 (5.2.4) the array has the proper keys in it but all of
the array values
try doing this
$secs = array();
foreach($_GET['sids'] as $sid){
$obj = null;
$obj = new CustomSecurity();
$obj-set(array('customSecurityID' = $sid));
$secs[] = $obj;
}
i just don't know if the operator - it's working wll over object arrays
saludos
On Thu, May 29, 2008 at 1:31 PM, David
Nope. Same performance. I originally had something like this (minus
the assigment to null) but I thought the confusion was in the variable
assignment so I went directly to the array. I've tried your code
exactly and get the same thing, assignment to null doesn't help.
Dave
Gabriel Sosa
I thought this line it may help, not actually the null
$secs[] = $obj;
i will still researching about this
On Thu, May 29, 2008 at 2:08 PM, David Moylan [EMAIL PROTECTED] wrote:
Nope. Same performance. I originally had something like this (minus the
assigment to null) but I thought the
Well, I did that except I'm providing the key explicitly. However, I've
tried it now without the key and it's the same except for the key value.
Very frustrating.
Dave
Gabriel Sosa wrote:
I thought this line it may help, not actually the null
$secs[] = $obj;
i will still researching
On Thu, 2008-05-29 at 14:01 -0300, Gabriel Sosa wrote:
try doing this
$secs = array();
foreach($_GET['sids'] as $sid){
$obj = null;
$obj = new CustomSecurity();
$obj-set(array('customSecurityID' = $sid));
$secs[] = $obj;
}
No, no, no. If it's a reference issue you need to do the
Solved this. I tried setting a class variable directly and didn't have
the same issue (should have tried that long ago). So that told me that
my error was somewhere in some lower level code when I initialize my
objects. I tracked it down to a problem where I wasn't cloning properly
when I
Also, for the record: Referring to the objects in the array directly
works fine. So, syntax like
$secs[$sid] = new CustomSecurity();
$secs[$sid]-load($sid);
is fine, as I would expect. Don't have to define it to a simple
variable like $obj in the code below. Further, if I then do
$sec =
which special characters dint converted?
this function converts only few special characters. try to use htmlentities
function instead
--
Regards,
Sanjeev
http://www.sanchanworld.com | http://webdirectory.sanchanworld.com - submit
your site
On 5/17/08, It flance [EMAIL PROTECTED] wrote:
Hi,
It flance wrote:
Hi,
this statement:
echo nl2br(htmlspecialchars($row['jobdescription'], ENT_QUOTES, 'UTF-8'));
works for php4.3.10 but not for php5.2.5
What doesn't work exactly? What's the output in php4 compared to php5?
--
Postgresql php tutorials
http://www.designmagick.com/
--
Hi,
this statement:
echo nl2br(htmlspecialchars($row['jobdescription'], ENT_QUOTES, 'UTF-8'));
works for php4.3.10 but not for php5.2.5
I am wondering if i am missing something.
Thank you
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Way does my for loop not complete the task if there are 4 emails it only
process 3 emails through the foreach loop if there is 3 it only process 2
# Connect up
$host =domain.com;
$port =110;
$mailtype = pop3;
$mailbox =INBOX;
$username =[EMAIL PROTECTED];
$password
On Fri, May 2, 2008 at 1:20 AM, Richard Kurth [EMAIL PROTECTED]
wrote:
Way does my for loop not complete the task if there are 4 emails it only
process 3 emails through the foreach loop if there is 3 it only process 2
$file=file_get_contents(C:\web\bouncehandler\eml\em$i);
$multiArray =
Nathan Nobbe wrote:
On Fri, May 2, 2008 at 1:20 AM, Richard Kurth
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
Way does my for loop not complete the task if there are 4 emails
it only process 3 emails through the foreach loop if there is 3 it
only process 2
I get a *Catchable fatal error*: Object of class stdClass could not be
converted to string on this line $mail_head = imap_headerinfo($conn, $i);
if I remove it it works fine what would be casing this I really need to
read the header. I am using php version 5.2.5
$conn = @imap_open({ .
Richard Kurth wrote:
I get a *Catchable fatal error*: Object of class stdClass could not be
converted to string on this line $mail_head = imap_headerinfo($conn, $i);
RTM.
http://www.php.net/imap_headerinfo
It's an object, not a string.
print_r($mail_head);
--
PHP General Mailing List
: [PHP] problem imap_headerinfo
I get a *Catchable fatal error*: Object of class stdClass could not be
converted to string on this line $mail_head = imap_headerinfo($conn,
$i);
if I remove it it works fine what would be casing this I really need to
read the header. I am using php version 5.2.5
Could someone explain to me what I'm doing wrong?
I'm trying to get an element from one DOMDocument and append it to a
different DOMDocument. The (simplified) output of saveXML() from the
first DOMDocument is as follows:
?xml version=1.0 encoding=UTF-8? BranchRoot
On Wed, Apr 9, 2008 at 9:35 AM, Christoph Boget
[EMAIL PROTECTED] wrote:
Could someone explain to me what I'm doing wrong?
I'm trying to get an element from one DOMDocument and append it to a
different DOMDocument. The (simplified) output of saveXML() from the
first DOMDocument is as
DOM Nodes are specific to the document in which they were created, so
you can't just append a node from one document into another document.
The importNode function does what you want.
http://us2.php.net/manual/en/function.dom-domdocument-importnode.php
Interesting. Why is that, out of
On Wed, Apr 9, 2008 at 10:17 AM, Christoph Boget
[EMAIL PROTECTED] wrote:
DOM Nodes are specific to the document in which they were created, so
you can't just append a node from one document into another document.
The importNode function does what you want.
Hi,
I have the code of a function to generate a random 10 character long
password following my signature.
To test it i do:
$clearpass = create_pass();
print('Clear: ' . $clearpass);
die();
But the output is only Clear:
Why isn't it working ?
Any help would be appreciated.
Warm Regards,
Mário Gamito wrote:
I have the code of a function to generate a random 10 character long
password following my signature.
To test it i do:
$clearpass = create_pass();
print('Clear: ' . $clearpass);
die();
But the output is only Clear:
Why isn't it working ?
Works fine here:
Mário Gamito wrote:
Hi,
I have the code of a function to generate a random 10 character long
password following my signature.
To test it i do:
$clearpass = create_pass();
print('Clear: ' . $clearpass);
die();
But the output is only Clear:
Why isn't it working ?
Any help would be
At 12:20 PM -0700 3/31/08, Jim Lucas wrote:
I have a very similar routine, but for the previous line, since you
can reference a string as an array, I do this:
$char = $possible[mt_rand(0, strlen($possible)-1)];
In this example, it would save ten function calls, if not more.
just a suggestion
Hello guys; i'm having a problem with session behavior; i'm going straight to
it, but first some considerations:
PHP Version 5.2.5IIF 5.1Running on localhost (XP machine)I start sessions at
the top of every page.
A the start of a test page, just as example, i do the assignment:
Hey All,
After searching I found this regex to remove img tags from a post, but running
it is giving me an error, being a total noob with regex i have no idea what the
heck is wrong heres the whole script as its tiny:
?php
$html = hello .'img src=/articles-blog/imgs/paul-fat.jpg alt=
Hi,
Sorry for such a laim question.
I have this code:
$host = 'http://' . $_SERVER['HTTP_HOST'];
foreach($browser as $key = $val){
echo img src=\dcs/ . $key . '.png' . / . ;
(...)
but it has a bug, I need to add the server domain before the picture, so
I did:
$host
-Original Message-
From: Mário Gamito [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 21, 2008 11:04 PM
To: php-general@lists.php.net
Subject: [PHP] Problem with quotes
Hi,
Sorry for such a laim question.
I have this code:
$host = 'http://' . $_SERVER['HTTP_HOST
On Thu, Feb 21, 2008 at 8:04 PM, Mário Gamito [EMAIL PROTECTED] wrote:
Hi,
Sorry for such a laim question.
I have this code:
$host = 'http://' . $_SERVER['HTTP_HOST'];
foreach($browser as $key = $val){
echo img src=\dcs/ . $key . '.png' . / . ;
(...)
but
There is any form of detect signal interrupting the stream_select call,
some times a signal is not a error and there is other change to get the
result, so if *_select tell me if its interruptded by signal.
in socket_select i can determine if a signal interrupted the
socket_select, but streams
You probably do not have GD installed...
Does ?php phpinfo();? list GD as one of your extensions?
If not, install it.
On Thu, February 7, 2008 6:57 am, Legolas wood wrote:
Hi
Thank you for reading my post
I am trying to run a php based application using php5 and apache.
but I receive an
On Thursday 07 February 2008 17:17:30 David Giragosian wrote:
On 2/7/08, Daniel Brown [EMAIL PROTECTED] wrote:
On Feb 7, 2008 8:23 AM, Jochem Maas [EMAIL PROTECTED] wrote:
Legolas wood schreef:
Hi
Thank you for reading my post
I am trying to run a php based application using php5
On Feb 8, 2008 2:50 PM, Børge Holen [EMAIL PROTECTED] wrote:
am I readin an comercial
but wait, there's more! Order within the next 6.3 seconds
and you'll receive a cloned version of my first born, ABSOLUTELY FREE!
--
/Dan
Daniel P. Brown
Senior Unix Geek
? while(1) { $me = $mind--;
Hi
Thank you for reading my post
I am trying to run a php based application using php5 and apache.
but I receive an error like:
*Fatal error*: Call to undefined function imagefontwidth() in
*/var/www/v603/includes/functions.php* on line *28*
when line 28 and its surrounding lines are:
##
Legolas wood schreef:
Hi
Thank you for reading my post
I am trying to run a php based application using php5 and apache.
but I receive an error like:
*Fatal error*: Call to undefined function imagefontwidth() in
*/var/www/v603/includes/functions.php* on line *28*
that would tend to
On Feb 7, 2008 8:23 AM, Jochem Maas [EMAIL PROTECTED] wrote:
Legolas wood schreef:
Hi
Thank you for reading my post
I am trying to run a php based application using php5 and apache.
but I receive an error like:
*Fatal error*: Call to undefined function imagefontwidth() in
On 2/7/08, Daniel Brown [EMAIL PROTECTED] wrote:
On Feb 7, 2008 8:23 AM, Jochem Maas [EMAIL PROTECTED] wrote:
Legolas wood schreef:
Hi
Thank you for reading my post
I am trying to run a php based application using php5 and apache.
but I receive an error like:
*Fatal
Joey schreef:
Hi All,
I have a problem that the below code which is supposed to display a random
image and on occasion it shows NO image.
I'm not sure what is happening. This is running on linux just in case that
makes any difference.
%
$image_folder = new_random/;
$dir =
Hi All,
I have a problem that the below code which is supposed to display a random
image and on occasion it shows NO image.
I'm not sure what is happening. This is running on linux just in case that
makes any difference.
%
$image_folder = new_random/;
$dir = $_SERVER['DOCUMENT_ROOT'] .
On Jan 18, 2008 10:12 AM, Joey [EMAIL PROTECTED] wrote:
Hi All,
I have a problem that the below code which is supposed to display a random
image and on occasion it shows NO image.
I'm not sure what is happening. This is running on linux just in case that
makes any difference.
%
On Fri, January 18, 2008 9:12 am, Joey wrote:
I have a problem that the below code which is supposed to display a
random
image and on occasion it shows NO image.
I'm not sure what is happening. This is running on linux just in case
that
makes any difference.
%
$image_folder =
Joey wrote:
Hi All,
I have a problem that the below code which is supposed to display a random
image and on occasion it shows NO image.
I'm not sure what is happening. This is running on linux just in case that
makes any difference.
%
$image_folder = new_random/;
$dir =
Could someone help with this code? It is a search and delete program. I'm
executing bunch of code within if-else statement. After searching the
records in else block the code is redirecting to if block. I'm not able
delete the records in else block. How do avoid the control move to if block?
Balasubramanyam A schreef:
Could someone help with this code? It is a search and delete program. I'm
executing bunch of code within if-else statement. After searching the
records in else block the code is redirecting to if block. I'm not able
delete the records in else block. How do avoid the
, January 05, 2008 12:08 AM
Subject: Re: [PHP] problem sending emamil across one postfix server
Miren Urkixo wrote:
Hello i want from one php page to send emails but i have one great
problem.
The server is one postfix into one suse and the php pages are into the
same
server with apache 2 and php
Hi,
I'm having a problem getting .phtml files to display in a web browser. I
can successfully display a test.php page as per PHP install instructions but
the phtml files show up blank (in firefox or IE).
I have added these entries to my apache httpd.conf:
LoadModule php5_module
But how can i make it?
thanks, a lot of thanks
- Original Message -
From: Jim Lucas [EMAIL PROTECTED]
To: Miren Urkixo [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Sent: Saturday, January 05, 2008 12:08 AM
Subject: Re: [PHP] problem sending emamil across one postfix server
Miren
Hello i want from one php page to send emails but i have one great problem.
The server is one postfix into one suse and the php pages are into the same
server with apache 2 and php 5.
it doesn't sent the messages and into the email server logs appears this:
Jan 3 16:28:55 server
Miren Urkixo wrote:
Hello i want from one php page to send emails but i have one great problem.
The server is one postfix into one suse and the php pages are into the same
server with apache 2 and php 5.
it doesn't sent the messages and into the email server logs appears this:
Jan 3 16:28:55
Ok, I did find a solution by accident.
I just blocked all tcp requests on port 80 and 443 comming from my own
outside IP. Since I have a couple of servers, I just dropped the
following into rc.local on all of them:
# Blocking url_fopen requests
ownip=`curl -s http://checkip.dyndns.org | awk
PROTECTED] | MSN Chat: [EMAIL PROTECTED] | SKYPE:
bestplace | Web: http://www.bestplace.biz | Web: http://www.seo-diy.com
-Original Message-
From: Samuel Vogel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 27, 2007 6:13 PM
To: php-general
Subject: [PHP] problem with url_fopen on free
Thanks for the infos.
I read through the very interesting post, but I did not find it to be a
solution for my problem.
I tried to limit connections with iptables, but it did not work out. I'm
not an expert at this, I tried like it is described here:
Hey guys,
I am running an free hosting environment and do have some trouble with
allow_url_fopen. Right now we prohibit this, but it's requested by many
of our users.
The problem is something like to following script, which calls itself
over and over again, being run on our server:
?php
: Samuel Vogel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 27, 2007 6:13 PM
To: php-general
Subject: [PHP] problem with url_fopen on free hosting environment
Hey guys,
I am running an free hosting environment and do have some trouble with
allow_url_fopen. Right now we prohibit
Hi Chris:
Exactly as you have there.
print_r($_POST);
will show you everything.
Here's a section of what comes back when I do this:
[mls] = 1234567
[property_address] = Main St
[city_arr] = Array
(
[0] = CHNDHT
[1] = CHNDLR
[2]
On Nov 13, 2007 7:10 PM, Jon Westcot [EMAIL PROTECTED] wrote:
Hi Chris:
Exactly as you have there.
print_r($_POST);
will show you everything.
Here's a section of what comes back when I do this:
[mls] = 1234567
[property_address] = Main St
[city_arr] = Array
On Nov 13, 2007 7:01 AM, chris smith [EMAIL PROTECTED] wrote:
On Nov 13, 2007 7:10 PM, Jon Westcot [EMAIL PROTECTED] wrote:
Hi Chris:
Exactly as you have there.
print_r($_POST);
will show you everything.
Here's a section of what comes back when I do this:
[mls]
Hi Chris, et al.:
Here's a section of what comes back when I do this:
[mls] = 1234567
[property_address] = Main St
[city_arr] = Array
(
[0] = CHNDHT
[1] = CHNDLR
[2] = GILBER
[3] = HIGLEY
[4]
Hi all:
I'm having problems retrieving an array value that should be in a $_POST
setting. In fact, I'm having trouble with the code hanging with no warnings or
errors whatsoever, so I've got no clue why it's not working.
Working code:
if(isset($_POST[mls])) {
Jon Westcot wrote:
Hi all:
I'm having problems retrieving an array value that should be in a $_POST
setting. In fact, I'm having trouble with the code hanging with no warnings or
errors whatsoever, so I've got no clue why it's not working.
Working code:
if(isset($_POST[mls])) {
Hi
Im having a big problem because the name of one input type text that is '
table.name' in my html, becomes 'table_name' in php, it is a kind of bug??
=S
form method=post
input type=text nametable.name
/form
in PHP we have:
$_POST[table_name] instead of $_POST[table.name]
someone knows
Jônata Tyska Carvalho wrote:
Im having a big problem because the name of one input type text that is '
table.name' in my html, becomes 'table_name' in php, it is a kind of bug??
=S
form method=post
input type=text nametable.name
/form
in PHP we have:
$_POST[table_name] instead of
Stut wrote:
Jônata Tyska Carvalho wrote:
Im having a big problem because the name of one input type text that is '
table.name' in my html, becomes 'table_name' in php, it is a kind of
bug??
=S
form method=post
input type=text nametable.name
/form
in PHP we have:
$_POST[table_name]
Jochem Maas wrote:
Stut wrote:
Jônata Tyska Carvalho wrote:
Im having a big problem because the name of one input type text that is '
table.name' in my html, becomes 'table_name' in php, it is a kind of
bug??
=S
form method=post
input type=text nametable.name
/form
in PHP we have:
Jônata Tyska Carvalho wrote:
Well if i cant, i cant! But dont say i dont need
why not?
Im working with a
framework that works in that way. Need to put the name of the column of
please name the framework - I like to know what to avoid :-)
my database like the name of the input. And i
with regard to things not to do, don't f'ing reply off-list (unless asked),
etiquette asks that you keep the conversation on the mailing list. if you
wAnt to call me an ass because you don't like the way I tried to help that's
fine
but please do it in public :-)
sorry but i thought when im
Jônata Tyska Carvalho wrote:
with regard to things not to do, don't f'ing reply off-list (unless asked),
etiquette asks that you keep the conversation on the mailing list. if you
wAnt to call me an ass because you don't like the way I tried to help that's
fine
but please do it in public :-)
Hi,
I am still having poblems with the php5 functions. I have 4 variables in
each. What is the problem?
Warning: mysqli_stmt::bind_param() [function.mysqli-stmt-bind-param]: Number
of elements in type definition string doesn't match number of bind variables
in on line 21
$prep =
The PHP docs show:
$stmt = $mysqli-prepare(INSERT INTO CountryLanguage VALUES
(?, ?, ?, ?));
$stmt-bind_param('sssd', $code, $language, $official, $percent);
for usage. Your $prep-bind_param() doesn't seem to include the
definitions. 'sssd' in the above example, string, string, string,
At 12:01 PM -0500 10/22/07, Adam Williams wrote:
I have an html page with checkboxes:
form action=mailform2.php method=POST
input type=checkbox name=option[] value=Modern MississippiModern
Mississippibr
input type=checkbox name=option[] value=Civil RightsCivil Rightsbr
input type=checkbox
On 10/23/07, tedd [EMAIL PROTECTED] wrote:
At 12:01 PM -0500 10/22/07, Adam Williams wrote:
I have an html page with checkboxes:
form action=mailform2.php method=POST
input type=checkbox name=option[] value=Modern MississippiModern
Mississippibr
input type=checkbox name=option[]
I have an html page with checkboxes:
form action=mailform2.php method=POST
input type=checkbox name=option[] value=Modern MississippiModern
Mississippibr
input type=checkbox name=option[] value=Civil RightsCivil Rightsbr
input type=checkbox name=option[] value=Military
On Oct 22, 2007, at 1:01 PM, Adam Williams wrote:
I have an html page with checkboxes:
form action=mailform2.php method=POST
input type=checkbox name=option[] value=Modern
MississippiModern Mississippibr
input type=checkbox name=option[] value=Civil RightsCivil
Rightsbr
input
Adam Williams wrote:
I have an html page with checkboxes:
form action=mailform2.php method=POST
input type=checkbox name=option[] value=Modern MississippiModern
Mississippibr
input type=checkbox name=option[] value=Civil RightsCivil Rightsbr
input type=checkbox name=option[] value=Military
On 10/22/07, Adam Williams [EMAIL PROTECTED] wrote:
I have an html page with checkboxes:
form action=mailform2.php method=POST
input type=checkbox name=option[] value=Modern MississippiModern
Mississippibr
input type=checkbox name=option[] value=Civil RightsCivil Rightsbr
input
On Mon, 2007-10-22 at 18:07 +0100, Stut wrote:
Adam Williams wrote:
I have an html page with checkboxes:
form action=mailform2.php method=POST
input type=checkbox name=option[] value=Modern MississippiModern
Mississippibr
input type=checkbox name=option[] value=Civil RightsCivil
Robert Cummings wrote:
On Mon, 2007-10-22 at 18:07 +0100, Stut wrote:
Adam Williams wrote:
I have an html page with checkboxes:
form action=mailform2.php method=POST
input type=checkbox name=option[] value=Modern MississippiModern
Mississippibr
input type=checkbox name=option[]
[snip]
print_r($_POST['option']);
it prints nothing.
[/snip]
Try resetting the array first, you may be at the end of the array;
reset($_POST);
print_r($_POST);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, 2007-10-22 at 12:20 -0500, Adam Williams wrote:
Yeah, thats the problem I'm having for some reason. When I do:
print_r($_POST['option']);
it prints nothing.
It's usually more informative to see everything that was posted so you
might have more of an idea what may have went
Adam Williams a écrit :
I have an html page with checkboxes:
[...]
but I'm getting the error:
you selected:
*Warning*: Invalid argument supplied for foreach() in
*/var/www/sites/mdah-test/museum/mmhsurvey/mailform2.php* on line *81*
I googled some checkbox/foreach pages on google, but I
301 - 400 of 3027 matches
Mail list logo