[PHP] PHP vs JSP
Hi all I'm busy working on a contract .. and we need to do some web based stuff .. but the client is intent on using jsp and not PHP. Is there somewhere where I can get good comparists between the two pro and cons etc etc .. I would much rather use PHP then JSP for the development Thanks Henti Smith -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] multple select forms... going to hit my head against a wall ..
Hi all I'm having a slight little problem .. I can't seem to solve.. I have a multiple select form .. that i select mutiple options from and then it creates a variable called $select now if I display $select .. I only get the last selected value .. here foloows test code.. Chocolate/Chocolate Chip Peanut Brittle/Vanilla Cookie Batter Vanilla/Blueberry Caramel Swirl Other... "; }else{ print $select; } ?> I'm de missing something ... can sombody please lend a hand .. thanks Henti Smith -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] multple select forms... going to hit my head against a wall ..
Having soved this .. thanks .. now for the next question .. *grin* I have the $select ... but I only use it on the next page .. heheh so I'm trying the following .. which of course doens't work .. nor does any idea on how to pass an array on in an input field in a form ? Henti On Tue, Jan 23, 2001 at 12:01:40PM -, Adrian Murphy wrote: > hey, > since u are slecting multiple options you'll have to use an array > here's how.i u need explanation,feel free to mail me: > > if ($select==""){ > print" > > > Chocolate/Chocolate Chip > Peanut Brittle/Vanilla > Cookie Batter > Vanilla/Blueberry > Caramel Swirl > Other... > > > > "; > > }else{ > > ///count array > $num = count($select); > > file://loop through array > for($i = 0;$i <$num;$i++){ > print $select[$i] . ""; > } > } > ?> > - Original Message - > From: <[EMAIL PROTECTED]> > To: PHP list <[EMAIL PROTECTED]> > Sent: Tuesday, January 23, 2001 11:42 AM > Subject: [PHP] multple select forms... going to hit my head against a wall > .. > > > > Hi all > > > > I'm having a slight little problem .. I can't seem to solve.. > > > > I have a multiple select form .. that i select mutiple options from and > then it creates a variable called $select > > now if I display $select .. I only get the last selected value .. here > foloows test code.. > > > > > if ($select==""){ > > print" > > > > > > Chocolate/Chocolate Chip > > Peanut Brittle/Vanilla > > Cookie Batter > > Vanilla/Blueberry > > Caramel Swirl > > Other... > > > > > > > > "; > > > > }else{ > > > > print $select; > > > > } > > ?> > > > > I'm de missing something ... can sombody please lend a hand .. thanks > > > > Henti Smith > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] passing arrays via forms ..
howdy again :) does anybody knwo how to pass an array via forms using something like where $client_services is an array ? Hetni -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] multple select forms... going to hit my head against a wall ..
u ... $select is an array .. so echo $select will just produce "array" .. On Tue, Jan 23, 2001 at 12:44:20PM -, Jon Haworth wrote: > Try either: > > ?> > > OR > > printf ("input type=\"hidden\" name=\"select\" value=\"%s\">", > $select); > > > HTH > Jon > > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 23 January 2001 12:27 > To: Adrian Murphy > Cc: PHP list > Subject: Re: [PHP] multple select forms... going to hit my head against > a wall .. > > > Having soved this .. thanks .. now for the next question .. *grin* > > I have the $select ... but I only use it on the next page .. heheh > so I'm trying the following .. > > > > which of course doens't work .. nor does > > > > any idea on how to pass an array on in an input field in a form ? > > Henti > > > > On Tue, Jan 23, 2001 at 12:01:40PM -, Adrian Murphy wrote: > > hey, > > since u are slecting multiple options you'll have to use an array > > here's how.i u need explanation,feel free to mail me: > > > > > if ($select==""){ > > print" > > > > > > Chocolate/Chocolate Chip > > Peanut Brittle/Vanilla > > Cookie Batter > > Vanilla/Blueberry > > Caramel Swirl > > Other... > > > > > > > > "; > > > > }else{ > > > > ///count array > > $num = count($select); > > > > file://loop through array > > for($i = 0;$i <$num;$i++){ > > print $select[$i] . ""; > > } > > } > > ?> > > - Original Message - > > From: <[EMAIL PROTECTED]> > > To: PHP list <[EMAIL PROTECTED]> > > Sent: Tuesday, January 23, 2001 11:42 AM > > Subject: [PHP] multple select forms... going to hit my head against a wall > > .. > > > > > > > Hi all > > > > > > I'm having a slight little problem .. I can't seem to solve.. > > > > > > I have a multiple select form .. that i select mutiple options from and > > then it creates a variable called $select > > > now if I display $select .. I only get the last selected value .. here > > foloows test code.. > > > > > > > > if ($select==""){ > > > print" > > > > > > > > > Chocolate/Chocolate Chip > > > Peanut Brittle/Vanilla > > > Cookie Batter > > > Vanilla/Blueberry > > > Caramel Swirl > > > Other... > > > > > > > > > > > > "; > > > > > > }else{ > > > > > > print $select; > > > > > > } > > > ?> > > > > > > I'm de missing something ... can sombody please lend a hand .. thanks > > > > > > Henti Smith > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] strangeness with is_dir()
Hi all I'm trying to use is_dir to go thru a dir to list all dirs of that I have a dir with 3 other dirs in them [root@universe templates]# pwd /www/docs/webit/admin/templates [root@universe templates]# ls -l total 12 drwxr-xr-x 4 root root 4096 Jan 12 13:16 1/ drwxr-xr-x 4 root root 4096 Jan 12 13:16 2/ drwxr-xr-x 2 root root 4096 Jan 12 13:16 CVS/ when I run this script section it only shows the CVS .. "; while (($file = readdir($handle))!==false) { if (is_dir($file)){ print "$file"; } } closedir($handle); ?> can anybody help out why it doesn't see 1 and 2 as directories ? Henti -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] interreng problem ..
Hi all I'm having a small problem here is code: as you can see ... it replace "$page_name_heading"; instead of just "$page_name"; any ideas how to get around this ? henti -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] print correct values for variables inside variebles ..
I've posted a similar question .. and got hat one resolved .. but now I'ms trugling with this one .. I have a page called edit .. that I pass a variable called $page like this edit.php3?page=index what I'm trying is something like this .. function blah($page){ $query="select * from site_${page}_html"; if ($result=$this->db_query($query)){ $row=$this->db_fetch_array($result); $$page_heading=$row["${page}_heading"]; $$page_desc=$row["${page}_desc"]; $$page_content=$row["${page}_content"]; }else{ die("horrably"); } } $$page_heading seems to work fine since ${$page}_heading and $${page}_heading gives my syntx errors while storing the data while printing ${page}_heading displays the name I want .. I can't get the data out of $$page_heading to display rather is shows "$" as $$page_heading, "_heading" as ${$page}_heading, "$contact_heading" as $${page}_heading any help would be appreaciated .. thanks Henti -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]