Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Just as HamZa DzCyberDeV said, you didn't specify which method you're using in <code>&lt;form&gt;</code> tag. </p> <p>For situations when you're POSTing something in your database, just as you are now - use <code>method="post"</code> and for forms when you're searching for something, use <code>method="get"</code>. In case of using post method, your URL will change to only my-website.com/post.php and in case of using get method, your URL will change to something like my-website.com/post.php?... (where your things which you're getting are going) - just how you got URL after submitting.</p> <p>The screen is just white because post.php (where you're going after clicking on submit button) doesn't contain anything to send to output, which you can easily do with <code>echo</code>.</p> <p>For instance, you can make a new html page which will be written down with echo:</p> <pre><code>echo ' &lt;html &lt;body&gt; This is my website! &lt;/body&gt; &lt;/html&gt; '; </code></pre> <p>Also, what you could do is to use <code>include()</code> php script which has already formed HTML, or you can check out here for some other redirect methods: <a href="http://php.about.com/od/learnphp/ht/phpredirection.htm" rel="nofollow">http://php.about.com/od/learnphp/ht/phpredirection.htm</a></p> <p>Just remember that PHP is language which server is processing and only HTML tags (with CSS and JS) are sent to other browser to be read.</p> <p>For more about POST and GET method you can read here:</p> <p><a href="http://php.net/manual/en/reserved.variables.post.php" rel="nofollow">http://php.net/manual/en/reserved.variables.post.php</a></p> <p><a href="http://php.net/manual/en/reserved.variables.get.php" rel="nofollow">http://php.net/manual/en/reserved.variables.get.php</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload