HTML form

HTML form

Posted by: Titanx3
Posted on: 2006-12-01 06:01:00

Hey, and thanks in advance for any help :)

Okey, so ive created a HTML form, and everything is fine until I get to the "submit" button, I cant seem to find out what to do to get to to register the forms results and display a new page.

Any help would be great. Thanks :)

Re: HTML form

Posted by: scjessey
Posted on: 2006-12-01 06:25:00

In reply to:

ive created a HTML form, and everything is fine until I get to the "submit" button, I cant seem to find out what to do to get to to register the forms results and display a new page.


At this point, you have a number of choices. I recommend that you create a PHP page that the form submits to. You should be able to get some idea of what is involved from this page of the DreamHost Wiki. For a complete working example (although not very secure), is suggest you read through lesson five of my XHTML tutorial.

Re: HTML form

Posted by: Titanx3
Posted on: 2006-12-01 09:39:00

Thanks for that, ill check it out. Looks pretty confusing, I dont know hardly anything about PHP, while im pretty happy with HTML, PHP is a whole new can of worms :(



Re: HTML form

Posted by: scjessey
Posted on: 2006-12-01 09:46:00

In reply to:

Looks pretty confusing, I dont know hardly anything about PHP, while im pretty happy with HTML, PHP is a whole new can of worms


One of the simplest things you can do is to send the results of the form to an email address. There will be no formatting, and there is a risk of getting spammed, but it is useful for testing, etc.:

<form method="post" action="mailto:somebody@somewhere.com">

You could also consider using DreamHost's own implementation of FormMail, although I have no personal experience of using it.

Tags: ivethanks in advance