when to use \n in forms

From: Date: Mon, 24 Nov 2003 03:41:04 +0000
Subject: when to use \n in forms
Groups: php.general 
Request: Send a blank email to php-general+get-170756@lists.php.net to get a copy of this message
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/

« previous php.general (#170756) next »