List:General Discussion« Previous MessageNext Message »
From:Ritschie Date:June 18 1999 4:08pm
Subject:Re: PHP help..
View as plain text  
Hi!

Thank you very much for the demo and the help I really appretiated it!
I have been able to do so.
And of course I am pretty happy.;))
Thanks again!


Ritschie

http://ludens.elte.hu/~krichard
On Fri, 18 Jun 1999, Robert Pruitt wrote:

> Hi Ritschie,
> 
> Nope, on third thought, this is a php question, not a mysql question. If you
> have a newsreader, a convenient way to read the php list is
> news://news.netimages.com/php3.general (I wish mysql list would do this).
> Anyway, take a look at your form.
> 
> If the portion of your form dealing with checkboxes used a technique like
> this--
> <?
> echo "<form action=\"index.php3\" method=\"post\">";
> echo "<input type=\"checkbox\" name=\"myname[]\" value=\"myvalue\"
> unchecked>";
> ?>
> 
> Then the script handling the variable passed to it (index.php3) might look
> something like this --
> <?
> $partcount = count($myname);
>              reset($myname);
>              for ($i = 0; $i < $partcount; $i++){
>                $key = key($myname);
>                $val = $myname[$key];
> $string .= $val . "<BR>";
>                next($myname);
>              }
>      ECHO "$string";
> ?>
> 
> Good Luck!,
> Robert
> 
> Ritschie wrote:
> 
> > Hi!
> >
> > This as almost nothing to do with mysql, but I am sure someone can help me
> > out with a sentence or two..
> >
> > I am using PHP to query my Mysql databse, I want a form made in HTML which
> > uses checkboxes.
> > I post the form to an index.php3 file. The question is  how can I use the
> > checkboxes.
> > I mean How can I determine whether a checkbox was checked or not?
> > I named the checkboxes the same. I checked the variable and it showed only
> > the last chekcbox string.
> > So the main problem is: How can I use the checkboxes in my PHP script?
> >
> > Thanks for your help..
> >
> > PS: And on second thought this has something to do with mysql..
> >
> > Ritschie
> >
> > http://ludens.elte.hu/~krichard
> >
> 
> 
> 
> ---------------------------------------------------------------------
> Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
> posting. To request this thread, e-mail mysql-thread5400@stripped
> 
> To unsubscribe, send a message to the address shown in the
> List-Unsubscribe header of this message. If you cannot see it,
> e-mail mysql-unsubscribe@stripped instead.
> 

Thread
PHP help..Ritschie18 Jun
  • Re: PHP help..Dino18 Jun
  • Re: PHP help..Stan P. van de Burgt18 Jun
    • Re: PHP help..Stan P. van de Burgt18 Jun
  • Re: PHP help..Robert Pruitt18 Jun
    • Re: PHP help..Ritschie18 Jun