Jump to content
grindmaster

PHP - Sending Data with forms

Recommended Posts

Hy,

I'am fresh in web Developement and I'am wondering why sending data via forms opens the php-file automaticly instead of working with the data in the backround.

<table class="table table-bordered">
	  <form action="php/interface.php" method="post">
	  	<thead>
     	 <tr>
		  <th><input type="submit" ></th>
        <th><p>Serie: <input type="text" name="serie" /></p></th>
        <th><p>Korn: <input type="text" name="korn" /></p></th>
      </tr> 
    </thead>
   </form>
  </table>

 

On the php-site I then want to take the user input, built a query -> save the result in a php-var - konvert it to Json and then do something in Javascript to display the result

in the Frontend. The Query and the conversion etc. works, 

but my Problem is, that pressing the submit button opens the php-file.:huh:

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...