Php storm not exacuting my code

Hi and sory for my english I have just installed PhpStrom and trying to run  this code below but nothing  displays on the screen   I have run the same code np++ and everything great what ami dong wrong.this is the code

 

<form name="form1" method="post" action="ss.php">
<input name="metin" type="text"><br>
<input name="sayac"type="text"><br>
<input type="submit" name="gonder" value="sonucu göster">


</form>
<?php
if($_POST){

$metin=$_POST["metin"];
$sayac=$_POST["sayac"];
for ($i=0;$i<$sayac;$i++){
echo $metin."<br/>";
}

}
else{


}
?>
2 comments
Comment actions Permalink

Hello,

I cannot reproduce this.

How exactly do you run the code in Notepad++ and in PhpStorm?

0
Comment actions Permalink

@Vladimir Luchansky 

Most likely (based on general symptoms) the guy is using built-in web server .. which has issues with POST requests.

I believe it's tracked as https://youtrack.jetbrains.com/issue/WEB-17317 and this ticket had no dev attention/response for quite long time.

 

@ali ak

General solution: use proper web server (e.g. Apache) to serve your pages.

0

Please sign in to leave a comment.