informatique:html
Ceci est une ancienne révision du document !
Table des matières
HTML
Trucs et astuces
Feature Detection
browser feature detection.
https://www.html5rocks.com/en/tutorials/detection/#feature-detection
Form array
Route::get('/essai01', function () { error_log( print_r( \Request::all(), true ) ); $html = <<<"HTML" <html><body> Hello World! <form action="/essai01" metho="post"> text1: <input type="text" name="text1" value="text 1"/> <br/>text2: <input type="text" name="text2[]" value="text 2.1" /> <br/>text2: <input type="text" name="text2[]" value="text 2.2" /> <br/>text3: <input type="text" name="text3[fr]" value="text 3.1" /> <br/>text3: <input type="text" name="text3[en]" value="text 3.2" /> <br/><input type="submit" /> </form> </body></html> HTML; return $html; });
Result:
[Sat Jun 3 09:51:50 2017] Array ( [text1] => text 1 [text2] => Array ( [0] => text 2.1 [1] => text 2.2 ) [text3] => Array ( [fr] => text 3.1 [en] => text 3.2 ) )
informatique/html.1496563375.txt.gz · Dernière modification : 04/06/2017 10:02 de cyrille