Jump to content

Form Processing


shujakku

Recommended Posts

Hi,

 

I can create the page and have the records inserting, without any issue, but the problem I'm having is trying to understand the process involved.

 

I can find lots of tutorials on how to insert records but none on the logic behind it.

Can anyone point me in the direction of a tutorial.  What I'm trying to understand is the how the

form submits the page (to where I'm not sure) and then executes the form handling.

 

I'm using Dreamweaver to create the insert form, if that is of any consequence.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/48284-form-processing/
Share on other sites

Hi!

What do you want?

All form-results are in the global variable $_POST. So for example you got a form like this:

<form method="post" action="">
   <input type="text" name="foo" value="bar" />
   <input type="submit" name="submit" value="submit" />
</form>

And now you submit the form and can use the following code:

<?php
   echo $_POST['foo'];
?>

Link to comment
https://forums.phpfreaks.com/topic/48284-form-processing/#findComment-236027
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.