Re: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread Jordan Miller

Ted,

On your "sticky" page, your checkbox input commands no longer have  
their corresponding "value" attributes. Just add those back in, and  
you will be all set (you only have the "value" attribute set on the  
event_reg.php page, NOT on the event_reg_calc.php page). This is your  
only problem.


i.e. change the code so that the output here:
http://www.passeycorp.com/event_reg_calc.php
will change from this:

to this:
checked="checked"/>


Jordan


On Aug 17, 2005, at 4:52 PM, Support wrote:


Thanks for the post...

The problem I am having here is that once the "sticky" or dynamic  
form is

created...
The checkboxes at that point don't seem to be "passing the value"  
only the

state. So when it is submitted
to the send mail form no value appears. I need to make the "sticky"  
pass the

value...

How is this done?

test form is on http://www.passeycorp.com/event_reg.php check it  
out and I

think you'll
see what I mean.

The suggestions and help are greatly appreciated.

Ted


- Original Message -
From: "Jordan Miller" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: 
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 example:
http://www.tizag.com/phpT/examples/formex.php/

all zedleon needs to do is add the correct value parameter to each
checkbox.

Jordan


On Aug 17, 2005, at 3:57 PM, <[EMAIL PROTECTED]> wrote:



Sorry I should clarify... checkboxes don't send their values
through they
send their names and states... so if you have the array:

Name="qmev[1]"... name="qmev[2]"... name="qmev[3]"

And your array contains

[1] => on : [3] => 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 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" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]



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, zedleon wrote:




I previously built a sticky form with dynamic checkbox
array's.
The form works beautifully thanks to help from Jochem Mass and
Kathleen
Ballard.

I now have a slightly different problem...I have built an email
form to send
the form data.
I copied and used the following code which works great in the  
sticky

form.


if (isset($_POST['gmev']) && is_array($_POST['gmev'])) {

   foreach ($_POST['gmev'] as $gmev_day) {

   print "You have registered for the: $gmev_day Good
Morning East
Valley Event.";
}

} else {

   print 'You are not registered for any events!';

}

The results is this:
   "You have registered for the: September 9th Good  
Morning

East
Valley Event."

Now when I use the same code modified for the form mailer I am
getting this
result.

if (isset($_POST['gmev']) && is_array($_POST['gmev'])) {

  foreach ($_POST['gmev'] as $gmev_day) {

  $msg .= "You have registered for the: $gmev_day Good Morning  
East

Valley
Event.\n";
}

} else {

   $mgs .= "You are not registered for any events!";
}

  result is - "You have registered for the: on Good  
Morning

East
Valley Event."

I am missing the value of the variable even though I am receiving
all the
instances of the variables from the checkboxes. When they are
selected, they
are present.

I really don't know what to do about correcting the problem. Any
guidance
here would really be appreciatedand...go easy on me...I am new
to PHP

Thanks before hand...

zedleon

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




__ NOD32 1.1196 (20050817) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php







--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php












RE: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread php-mail
I do apologise... it's been one of those days and the form I was thinking of
didn't actually have any values attached to the checkbox

Ignore me :)

-Original Message-
From: Jordan Miller [mailto:[EMAIL PROTECTED] 
Sent: 17 August 2005 22:28
To: [EMAIL PROTECTED]
Cc: php-general@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 zedleon needs to do is add the correct value parameter to each  
checkbox.

Jordan


On Aug 17, 2005, at 3:57 PM, <[EMAIL PROTECTED]> wrote:

> Sorry I should clarify... checkboxes don't send their values  
> through they
> send their names and states... so if you have the array:
>
> Name="qmev[1]"... name="qmev[2]"... name="qmev[3]"
>
> And your array contains
>
> [1] => on : [3] => 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 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" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
>> 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, zedleon wrote:
>>
>>
>>> I previously built a sticky form with dynamic checkbox
>>> array's.
>>> The form works beautifully thanks to help from Jochem Mass and
>>> Kathleen
>>> Ballard.
>>>
>>> I now have a slightly different problem...I have built an email
>>> form to send
>>> the form data.
>>> I copied and used the following code which works great in the sticky
>>> form.
>>>
>>>
>>> if (isset($_POST['gmev']) && is_array($_POST['gmev'])) {
>>>
>>>foreach ($_POST['gmev'] as $gmev_day) {
>>>
>>>print "You have registered for the: $gmev_day Good
>>> Morning East
>>> Valley Event.";
>>> }
>>>
>>> } else {
>>>
>>>print 'You are not registered for any events!';
>>>
>>> }
>>>
>>> The results is this:
>>>"You have registered for the: September 9th Good Morning
>>> East
>>> Valley Event."
>>>
>>> Now when I use the same code modified for the form mailer I am
>>> getting this
>>> result.
>>>
>>> if (isset($_POST['gmev']) && is_array($_POST['gmev'])) {
>>>
>>>   foreach ($_POST['gmev'] as $gmev_day) {
>>>
>>>   $msg .= "You have registered for the: $gmev_day Good Morning East
>>> Valley
>>> Event.\n";
>>> }
>>>
>>> } else {
>>>
>>>$mgs .= "You are not registered for any events!";
>>> }
>>>
>>>   result is - "You have registered for the: on Good Morning
>>> East
>>> Valley Event."
>>>
>>> I am missing the value of the variable even though I am receiving
>>> all the
>>> instances of the variables from the checkboxes. When they are
>>> selected, they
>>> are present.
>>>
>>> I really don't know what to do about correcting the problem. Any
>>> guidance
>>> here would really be appreciatedand...go easy on me...I am new
>>> to PHP
>>>
>>> Thanks before hand...
>>>
>>> zedleon
>>>
>>> -- 
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>>
>>>
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
> __ NOD32 1.1196 (20050817) Information __
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




__ NOD32 1.1196 (20050817) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread Jordan Miller
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 zedleon needs to do is add the correct value parameter to each  
checkbox.


Jordan


On Aug 17, 2005, at 3:57 PM, <[EMAIL PROTECTED]> wrote:

Sorry I should clarify... checkboxes don't send their values  
through they

send their names and states... so if you have the array:

Name="qmev[1]"... name="qmev[2]"... name="qmev[3]"

And your array contains

[1] => on : [3] => 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 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" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

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, zedleon wrote:



I previously built a sticky form with dynamic checkbox
array's.
The form works beautifully thanks to help from Jochem Mass and
Kathleen
Ballard.

I now have a slightly different problem...I have built an email
form to send
the form data.
I copied and used the following code which works great in the sticky
form.


if (isset($_POST['gmev']) && is_array($_POST['gmev'])) {

   foreach ($_POST['gmev'] as $gmev_day) {

   print "You have registered for the: $gmev_day Good
Morning East
Valley Event.";
}

} else {

   print 'You are not registered for any events!';

}

The results is this:
   "You have registered for the: September 9th Good Morning
East
Valley Event."

Now when I use the same code modified for the form mailer I am
getting this
result.

if (isset($_POST['gmev']) && is_array($_POST['gmev'])) {

  foreach ($_POST['gmev'] as $gmev_day) {

  $msg .= "You have registered for the: $gmev_day Good Morning East
Valley
Event.\n";
}

} else {

   $mgs .= "You are not registered for any events!";
}

  result is - "You have registered for the: on Good Morning
East
Valley Event."

I am missing the value of the variable even though I am receiving
all the
instances of the variables from the checkboxes. When they are
selected, they
are present.

I really don't know what to do about correcting the problem. Any
guidance
here would really be appreciatedand...go easy on me...I am new
to PHP

Thanks before hand...

zedleon

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




__ NOD32 1.1196 (20050817) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread php-mail
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 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] => on [3] => on ). So the
values are missing.
don't really know how to proceed at this point.
any help is appreciated.


"Joe Wollard" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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, zedleon wrote:
>
> > I previously built a sticky form with dynamic checkbox
> > array's.
> > The form works beautifully thanks to help from Jochem Mass and
> > Kathleen
> > Ballard.
> >
> > I now have a slightly different problem...I have built an email
> > form to send
> > the form data.
> > I copied and used the following code which works great in the sticky
> > form.
> >
> >
> > if (isset($_POST['gmev']) && is_array($_POST['gmev'])) {
> >
> >foreach ($_POST['gmev'] as $gmev_day) {
> >
> >print "You have registered for the: $gmev_day Good
> > Morning East
> > Valley Event.";
> > }
> >
> > } else {
> >
> >print 'You are not registered for any events!';
> >
> > }
> >
> > The results is this:
> >"You have registered for the: September 9th Good Morning
> > East
> > Valley Event."
> >
> > Now when I use the same code modified for the form mailer I am
> > getting this
> > result.
> >
> > if (isset($_POST['gmev']) && is_array($_POST['gmev'])) {
> >
> >   foreach ($_POST['gmev'] as $gmev_day) {
> >
> >   $msg .= "You have registered for the: $gmev_day Good Morning East
> > Valley
> > Event.\n";
> > }
> >
> > } else {
> >
> >$mgs .= "You are not registered for any events!";
> > }
> >
> >   result is - "You have registered for the: on Good Morning
> > East
> > Valley Event."
> >
> > I am missing the value of the variable even though I am receiving
> > all the
> > instances of the variables from the checkboxes. When they are
> > selected, they
> > are present.
> >
> > I really don't know what to do about correcting the problem. Any
> > guidance
> > here would really be appreciatedand...go easy on me...I am new
> > to PHP
> >
> > Thanks before hand...
> >
> > zedleon
> >
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




__ NOD32 1.1196 (20050817) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread php-mail
Sorry I should clarify... checkboxes don't send their values through they
send their names and states... so if you have the array:

Name="qmev[1]"... name="qmev[2]"... name="qmev[3]"

And your array contains

[1] => on : [3] => 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 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" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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, zedleon wrote:
>
> > I previously built a sticky form with dynamic checkbox
> > array's.
> > The form works beautifully thanks to help from Jochem Mass and
> > Kathleen
> > Ballard.
> >
> > I now have a slightly different problem...I have built an email
> > form to send
> > the form data.
> > I copied and used the following code which works great in the sticky
> > form.
> >
> >
> > if (isset($_POST['gmev']) && is_array($_POST['gmev'])) {
> >
> >foreach ($_POST['gmev'] as $gmev_day) {
> >
> >print "You have registered for the: $gmev_day Good
> > Morning East
> > Valley Event.";
> > }
> >
> > } else {
> >
> >print 'You are not registered for any events!';
> >
> > }
> >
> > The results is this:
> >"You have registered for the: September 9th Good Morning
> > East
> > Valley Event."
> >
> > Now when I use the same code modified for the form mailer I am
> > getting this
> > result.
> >
> > if (isset($_POST['gmev']) && is_array($_POST['gmev'])) {
> >
> >   foreach ($_POST['gmev'] as $gmev_day) {
> >
> >   $msg .= "You have registered for the: $gmev_day Good Morning East
> > Valley
> > Event.\n";
> > }
> >
> > } else {
> >
> >$mgs .= "You are not registered for any events!";
> > }
> >
> >   result is - "You have registered for the: on Good Morning
> > East
> > Valley Event."
> >
> > I am missing the value of the variable even though I am receiving
> > all the
> > instances of the variables from the checkboxes. When they are
> > selected, they
> > are present.
> >
> > I really don't know what to do about correcting the problem. Any
> > guidance
> > here would really be appreciatedand...go easy on me...I am new
> > to PHP
> >
> > Thanks before hand...
> >
> > zedleon
> >
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




__ NOD32 1.1196 (20050817) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread Jordan Miller
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:



Jordan


On Aug 17, 2005, at 3:30 PM, zedleon wrote:



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" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]


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, zedleon wrote:




I previously built a sticky form with dynamic checkbox
array's.
The form works beautifully thanks to help from Jochem Mass and
Kathleen
Ballard.

I now have a slightly different problem...I have built an email
form to send
the form data.
I copied and used the following code which works great in the sticky
form.


if (isset($_POST['gmev']) && is_array($_POST['gmev'])) {

   foreach ($_POST['gmev'] as $gmev_day) {

   print "You have registered for the: $gmev_day Good
Morning East
Valley Event.";
}

} else {

   print 'You are not registered for any events!';

}

The results is this:
   "You have registered for the: September 9th Good Morning
East
Valley Event."

Now when I use the same code modified for the form mailer I am
getting this
result.

if (isset($_POST['gmev']) && is_array($_POST['gmev'])) {

  foreach ($_POST['gmev'] as $gmev_day) {

  $msg .= "You have registered for the: $gmev_day Good Morning East
Valley
Event.\n";
}

} else {

   $mgs .= "You are not registered for any events!";
}

  result is - "You have registered for the: on Good Morning
East
Valley Event."

I am missing the value of the variable even though I am receiving
all the
instances of the variables from the checkboxes. When they are
selected, they
are present.

I really don't know what to do about correcting the problem. Any
guidance
here would really be appreciatedand...go easy on me...I am new
to PHP

Thanks before hand...

zedleon

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php







--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread zedleon
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" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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, zedleon wrote:
>
> > I previously built a sticky form with dynamic checkbox
> > array's.
> > The form works beautifully thanks to help from Jochem Mass and
> > Kathleen
> > Ballard.
> >
> > I now have a slightly different problem...I have built an email
> > form to send
> > the form data.
> > I copied and used the following code which works great in the sticky
> > form.
> >
> >
> > if (isset($_POST['gmev']) && is_array($_POST['gmev'])) {
> >
> >foreach ($_POST['gmev'] as $gmev_day) {
> >
> >print "You have registered for the: $gmev_day Good
> > Morning East
> > Valley Event.";
> > }
> >
> > } else {
> >
> >print 'You are not registered for any events!';
> >
> > }
> >
> > The results is this:
> >"You have registered for the: September 9th Good Morning
> > East
> > Valley Event."
> >
> > Now when I use the same code modified for the form mailer I am
> > getting this
> > result.
> >
> > if (isset($_POST['gmev']) && is_array($_POST['gmev'])) {
> >
> >   foreach ($_POST['gmev'] as $gmev_day) {
> >
> >   $msg .= "You have registered for the: $gmev_day Good Morning East
> > Valley
> > Event.\n";
> > }
> >
> > } else {
> >
> >$mgs .= "You are not registered for any events!";
> > }
> >
> >   result is - "You have registered for the: on Good Morning
> > East
> > Valley Event."
> >
> > I am missing the value of the variable even though I am receiving
> > all the
> > instances of the variables from the checkboxes. When they are
> > selected, they
> > are present.
> >
> > I really don't know what to do about correcting the problem. Any
> > guidance
> > here would really be appreciatedand...go easy on me...I am new
> > to PHP
> >
> > Thanks before hand...
> >
> > zedleon
> >
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread Joe Wollard

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, zedleon wrote:

I previously built a sticky form with dynamic checkbox  
array's.
The form works beautifully thanks to help from Jochem Mass and  
Kathleen

Ballard.

I now have a slightly different problem...I have built an email  
form to send

the form data.
I copied and used the following code which works great in the sticky
form.


if (isset($_POST['gmev']) && is_array($_POST['gmev'])) {

   foreach ($_POST['gmev'] as $gmev_day) {

   print "You have registered for the: $gmev_day Good  
Morning East

Valley Event.";
}

} else {

   print 'You are not registered for any events!';

}

The results is this:
   "You have registered for the: September 9th Good Morning  
East

Valley Event."

Now when I use the same code modified for the form mailer I am  
getting this

result.

if (isset($_POST['gmev']) && is_array($_POST['gmev'])) {

  foreach ($_POST['gmev'] as $gmev_day) {

  $msg .= "You have registered for the: $gmev_day Good Morning East  
Valley

Event.\n";
}

} else {

   $mgs .= "You are not registered for any events!";
}

  result is - "You have registered for the: on Good Morning  
East

Valley Event."

I am missing the value of the variable even though I am receiving  
all the
instances of the variables from the checkboxes. When they are  
selected, they

are present.

I really don't know what to do about correcting the problem. Any  
guidance
here would really be appreciatedand...go easy on me...I am new  
to PHP


Thanks before hand...

zedleon

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php