PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am trying to make a Form which can pass multiple inputs using varibale DisEarn[$x] to add2.php file where that input can be processed. However I am not receiving the value.
For starters, since you haven't shown the <form...> tag, it's not clear whether your action= parameter is POST or GET. Big difference!
But I think the issue is with the way you are naming your form elements. Using square brackets [ ] in a name probably won't work. That makes it look like an array. Try removing the brackets, both in the form and in your script. Just let it be DisEarn1, DisEarn2.
I am trying to make a Form which can pass multiple inputs using varibale DisEarn[$x] to add2.php file where that input can be processed. However I am not receiving the value.
I tried $_POST, $_GET, $_REQUEST, nothing work. Any help please?
Thanks & Regards,
Glad you got your problem resolved. Just a quick tip though... instead of echo'ing several lines, it's much easier (and more readable) to use a here document (heredoc for short). For example: