You are here: Re: [PHP] Help correcting a form mailer problem... « PHP « IT news, forums, messages
Re: [PHP] Help correcting a form mailer problem...

Posted by "zedleon" on 08/17/05 23:30

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" <joe.wollard@gmail.com> wrote in message
news:2AAC4C87-2BAD-4E8A-B08B-E26C533F6F18@gmail.com...
> 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 "<p>You have registered for the: <b>$gmev_day</b> Good
> > Morning East
> > Valley Event.</p>";
> > }
> >
> > } 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 appreciated....and...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
> >
> >

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация