0
Is this code correct
https://code.sololearn.com/wRx3zSf3aeU0/?ref=app action page https://code.sololearn.com/w55tcanM5gGD/?ref=app
4 Answers
+ 4
its correct
+ 3
It's correct, but take care if you access the test_action page directly, you'll get an error. To avoid it you should verify the existence of this index before access it like :
if( isset($_GET['name']) ) {
$a = $_GET['name'];
} else {
$a = 'Default value';
}
This will improve the robustess of your code.
+ 2
but i ve heard that both single and double quotes work
0
thank you