• I have copied and pasted source for a form from a website. How do I find the destination info for the form?
    <form method='post' action='what goes in this space?' enctype='What goes in this space?'>

Viewing 2 replies - 1 through 2 (of 2 total)
  • action usually points to a page that will process the form contents, like process_form.php, for example. You would create process_form.php on your server and have it read the form field values that gets transmitted via the POST method. enctype is the encoding type.

    It’s pretty much impossible to just copy & paste a form from another web site and have it behave the same way on your own site (although you can, at least, use the basic structure of the form). Usually, there’s some JavaScript that’s linked to the form’s submit button that does some sort of data validation, or it may even submit an Ajax request to process the form.

    You can read more about forms at W3 Schools.

    Thread Starter drb1966

    (@drb1966)

    Thank you very much that’s exactly what I was looking for…someone to break it down. And yes I found the perfect form structure and new I would need to make a lot of changes in order for it to actually work within my website but just didn’t know the steps, script or code needed. Ill check out W3 Schools and see if I can figure out how to put it all together.

    Thanks again

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘action info for submit button’ is closed to new replies.