Jump to content


  • Posts

  • Joined

  • Last visited

About raduenea

  • Birthday 06/21/1979

Profile Information

  • Gender
  • Location

raduenea's Achievements

Regular Member

Regular Member (3/5)




Community Answers

  1. We find out the problem. Between the client and the webserver it's a varnish. Aparently varnish block the POST. 😐 After some proper configuration on the varnish and server we can make POST.
  2. It's the first script that made POST. The server it's in our IT. I ask them a question related to this situation and I wait an answer. If I found something I let you all now.
  3. enable_post_data_reading it's ON for both Local and Master value.
  4. I modify the html code as below. Replace the submit button to force the post, but no success. The same result, server request is GET. <html> <body> <form method="POST" action="test.php"> <input type="text" name="ceva"> <button type="submit" formmethod="post" formaction="test.php">Submit</button> </form> </body> </html>
  5. We develop de code on our local machine witch working fine. Actually the code it's much more complex. But when we put it on the server we identify that no POST was made. So when I create that small piece of code just to test the POST and to write it here. So that small code it's: index.html <html> <body> <form action="test.php" method="post"> <input type="text" name="ceva"> <input type="submit" value="go"> </form> </body> </html> test.php <?php ini_set('display_errors', 1); error_reporting(E_ALL); echo "now running test.php script<br>"; echo $_SERVER['REQUEST_METHOD'] . '<br>'; if(isset($_POST['ceva'])) { echo "Ceva is: ".$_POST['ceva']; } else { echo "Ceva is not set<br>"; } The results: now running test.php script GET Ceva is not set Something it's wrong. In html I used post method but the server request GET. Can be server restrictions ? Thanks
  6. Interesting. I add in php the line: echo $_SERVER['REQUEST_METHOD'] . '<br>'; In form html I have method='post', and at result it's show GET. now running test.php script GET Ceva is not set
  7. If I switch to GET instead POST, it's working: Results are: now running test.php script Ceva is: gdfgdf
  8. Sorry for delay. It's show: now running test.php script Ceva is not set
  9. You can see it in the begining of this post.
  10. The results with this script is
  11. The first script is in html page. The second script is in php page.
  12. I have a strange situation. I want to submit a form with POST method but it's not working. It works only with GET. When I submit with POST nothing show on test.php webpage. How can this be possible ? Can be a server restriction ? HTML: <html> <body> <form action="test.php" method="post"> <input type="text" name="ceva"> <input type="submit" value="go"> </form> </body> </html> PHP: <?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); if(isset($_POST['ceva'])) { echo $_POST['ceva']; } ?> Thanks.
  13. So in the end I must use two select. First to count the number of all rows: $res = $conn->query("SELECT COUNT(*) FROM table1"); // get the count $total_recs = $res->fetch_row()[0]; // read the first column of the returned row Second to paginate like: $res = $conn->query("SELECT name,prename FROM table1 LIMIT 1,5"); // first 5 rows $res->execute(); $res->fetchAll(PDO::FETCH_OBJ); I wonder if it's possible to combine this two SELECT statements into one. Because using two select I must interact with my table twice, witch is a big table. Maybe combine this into one SELECT may reduce the time to query.
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.