HTML Form Values PHP and Spaces -


i working on various projects organization started developer. portion of work involves form processing php.

i rather surprised see many of form values, previous developer used spaces (for example <input type="radio" value="do not enroll" name="proceed" /> ). think know why did - sends email , makes easy display values in human readable format without additional processing, but, used 'typical' programming naming conventions (no spaces, camel case, pascal case, , on), make me little uneasy. whenever have processed html forms , assigned values, believe tried following "typical" variable naming conventions, have habit rather necessary practice.

now, not saying wrong, tried little research on topic , have not reached definite conclusion. question - there wrong including spaces in values assigned html form input elements - particularly when sent on email? if so, complications may result, , there way process them, or recommend keeping actual form values simple (for example, <input type="radio" value="decline" name="proceed" /> , processing them make them more readable after form submitted.

thanks input!

there nothing bad, except real restriction on characters can appear in form control names when form submitted get

"the "get" method restricts form data set values ascii characters.

source 1 | source 2


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -

java - Digest auth with Spring Security using javaconfig -