Simple PHP Form Not Working - 500 Internal Server Error - Parallels Plesk Panel 9.5 -


i'm stumped why contact form returns 500 internal server error. 99% sure code immaculate.

i using parallels plesk panel 9.5 hosting admin control panel. have found log manager, , checked in both access logs , error logs. in error logs there entries [error] [client 162.247.90.74], [error] [client 184.164.146.26] file doesn't exist, , [error] [client 216.21.233.2] says cannot create or spawn child process.

my html form on contact.html:

 <form class="form-horizontal" method="post" action="mailer.php" class="form-horizontal" role="form">     <div class="form-group">         <label for="name" class="col-sm-2"><small>name</small></label>            <div class="col-sm-10">               <input type="text" class="form-control" id="inputname" name="inputname" placeholder="enter full name" required>            </div>      </div>     <div class="form-group">         <label for="email" class="col-sm-2"><small>email</small></label>             <div class="col-sm-10">                 <input type="email" class="form-control" id="inputemail" name="inputemail" placeholder="enter email, example@domain.com" required>             </div>     </div>     <div class="form-group">         <label for="name" class="col-sm-2"><small>telephone</small></label>             <div class="col-sm-10">                 <input type="text" class="form-control" id="inputphone" name="inputphone" placeholder="enter telephone number" required>             </div>     </div>     <div class="form-group">         <label for="message" class="col-sm-2"><small>message</small></label>             <div class="col-sm-10">                 <textarea class="form-control" rows="4" name="inputmessage" id="inputmessage" placeholder="enter message here" required></textarea>             </div>     </div>     <div class="form-group">         <p class="antispam">leave empty:         <br /><input name="url" /></p>     </div>     <div class="form-group">         <div class="col-sm-10 col-sm-offset-2">             <input style="font-size:22px;" id="submit" name="submit" type="submit" value="send" class="btn">         </div>     </div> </form> 

the mailer.php document:

 <?php   // if url field empty  if(isset($_post['url']) && $_post['url'] == ''){  // send form email mail( 'info@website.com', 'contact form', print_r($_post,true) ); }  // otherwise, let spammer think got message through  // redirect thank page  header('location: http://www.website.com/thankyou.html'); exit('redirecting http://www.website.com/thankyou.html');  ?> 

i called hosting provider , harassed them more. said account "holding memory" refreshed , works. well, guess that's answer!


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -