RE: [PHP] when to use \n in forms

From: Date: Mon, 24 Nov 2003 03:45:31 +0000
Subject: RE: [PHP] when to use \n in forms
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-170759@lists.php.net to get a copy of this message
No Diff, Plus i think that HTML is wrong.... Use: <OPTION value='cat'>cat</OPTION> <OPTION value='dog'>dog</OPTION> <OPTION value='rat'>rat</OPTION> Just for that HTML standards sake :P _________________ Nigel Jones njonez@ihug.co.nz >> -----Original Message----- >> From: Joffrey Leevy [mailto:joffrey_leevy3@yahoo.com] >> Sent: Monday, November 24, 2003 4:41 PM >> To: php-general@lists.php.net >> Subject: [PHP] when to use \n in forms >> >> >> Hi: >> >> Can someone shed some light on this please? To me >> when doing a form in php using \n or not using \n >> makes no difference. I still get the form in my >> browser to work. >> For instance, >> >> <?php >> echo"<form action='processform_2b.php' >> method='post'>\n >> <select name='animal'>\n >> <OPTION value='cat'>cat\n >> <OPTION value='dog'>dog\n >> <OPTION value='rat'>rat\n >> etc............. >> and >> >> <?php >> echo"<form action='processform_2b.php' >> method='post'>\n >> <select name='animal'> >> <OPTION value='cat'>cat >> <OPTION value='dog'>dog >> <OPTION value='rat'>rat >> etc............. >> >> produce the same select menu in my browser. So is >> using "\n" really that critical for this case? >> >> Thanks >> >> >> __________________________________ >> Do you Yahoo!? >> Free Pop-Up Blocker - Get it now >> http://companion.yahoo.com/ >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >>

« previous php.general (#170759) next »