Re: when to use \n in forms
| From: | John Nichel | Date: | Mon, 24 Nov 2003 03:48:47 +0000 |
| Subject: | Re: when to use \n in forms | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170758@lists.php.net to get a copy of this message | ||
Joffrey Leevy wrote:
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'>\nHTML ignores whitespace (new lines included). You can create your entire HTML document on one line, but debugging it would be a bitch. Throwing new lines in there isn't for the browser...but it can help you in the long run. -- By-Tor.com It's all about the Rush http://www.by-tor.com<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