php - Notice: Undefined Index in form submission to another page -


i new php , trying submit form using post. form element looks like

<form action="<?php htmlspecialchars($_server["/php/somefunctions.php"]);?>" method="post"> 

both files have session_start(); declared @ top , form doesn't have required field. when open form in browser shows,

notice: undefined index: /php/somefunctions.php in 'filepath' on line 31.

line 31 above mentioned line. if ignore , fill in form , click on submit, gives me

access forbidden!

you don't have permission access requested object. either read-protected or not readable server.

you should use server document root.

$_server["document_root"]./path file

also forgot add echo. without echo php won't display

echo htmlspecialchars();


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -