KH-Joshua
07-13-2007, 01:51 AM
Is PHP the best way to handle an HTML form?
I have a contact form I'm trying to get to work and I have tried a few different scripts to pull the information and send it? What code should I use?
gophp
07-13-2007, 03:42 AM
I think in Programming Tutorials forum here on WHT you can find a lot of examples. But it should not be that hard, even if you care about 100% security. What's not working?
KH-Joshua
07-13-2007, 04:00 AM
Set aside from the basic forms, I don't use the standard "submit" button. I have images. I believe the code is proper, but I'm not sure. I have had many comments about it but people don't understand that I'm novice at PHP. They just say Define your headers or something along thoughs lines. I had a friend redo the code for me and it's still failure.
My goal is to get the PHP code to pull the info from the HTML form and send it to an email address.
KH-Joshua
07-13-2007, 01:52 PM
I'm trying to but the forum board is saying I need 5 posts to do so.
smartsoft
07-13-2007, 10:09 PM
Post your code here, we might be of help i can right a code for ya for doing that
dezignwork
07-14-2007, 05:31 PM
Even if you don't use submit button you will probably want to use a form to sent to page to server. Based on what form elements you have in your page, you can send any information back to server where your PHP script will do all the processing. There really isn't an easier way.
Set aside from the basic forms, I don't use the standard "submit" button. I have images. I believe the code is proper, but I'm not sure. I have had many comments about it but people don't understand that I'm novice at PHP. They just say Define your headers or something along thoughs lines. I had a friend redo the code for me and it's still failure.
My goal is to get the PHP code to pull the info from the HTML form and send it to an email address.
dezignwork
07-14-2007, 05:32 PM
I should correct myself. maybe you really don't want to use forms. there are workarounds but depends what you want to achieve.
avocado
07-16-2007, 05:17 PM
Try googling for something called NMS Formmail. Uses Perl instead of PHP, but is secure out of the box and can be set up without your having to know anything about programming.
spiderwebfx
07-16-2007, 06:44 PM
Why not try looking into something like this: sonicfog.com/soniccontact.html
It is a bit more advanced than what you are looking for, but it gives you the general idea of how most of it works.
Kareeser
07-16-2007, 09:31 PM
I don't see what the problem is... why resort to entire systems to achieve one objective?
Do you know how to use $_POST? If not, we can probably explain...
shadow88
07-17-2007, 01:53 AM
you can use PHP without a problem.
make variables = $_POST['variable']
and then use the mail function in php given that it is setup already on your webserver to echo them.
Should be really straight forward. Ive done quite a bit of form handling in PHP including checking and submitting to MySQL databases