HTTP Error 405.0 Method Not Allowed

Hello all-

I am very new to PHP programming, taking a course at a local university. I created the following HTML and PHP code to prompt the user to enter 15 elements and then it should display those elements as an output. When I run the HTML I get the expected screen asking for the elements but as soon as I hit Submit I get the following error: HTTP Error 405.0 Method Not Allowed. I’ve listed my code below.
Any help would be much appreciated!
[php]

Elements Please enter 15 elements.















<?php $A[0] = $_REQUEST['elements(0)']; $A[1] = $_REQUEST['elements(1)']; $A[2] = $_REQUEST['elements(2)']; $A[3] = $_REQUEST['elements(3)']; $A[4] = $_REQUEST['elements(4)']; $A[5] = $_REQUEST['elements(5)']; $A[6] = $_REQUEST['elements(6)']; $A[7] = $_REQUEST['elements(7)']; $A[8] = $_REQUEST['elements(8)']; $A[9] = $_REQUEST['elements(9)']; $A[10] = $_REQUEST['elements(10)']; $A[11] = $_REQUEST['elements(11)']; $A[12] = $_REQUEST['elements(12)']; $A[13] = $_REQUEST['elements(13)']; $A[14] = $_REQUEST['elements(14)']; $x = 0; while($x < 15){ echo $A[$x]; $x++; } ?>

[/php]

Get rid of the () and []

Sponsor our Newsletter | Privacy Policy | Terms of Service