| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| PHP Mail Form troubles | |
|---|---|
| Tweet Topic Started: Feb 5 2007, 04:53 PM (436 Views) | |
| Jpec07 | Feb 5 2007, 04:53 PM Post #1 |
|
Member
![]() ![]() ![]() ![]()
|
Solved! Hey again, all, I'm having some difficulty again, only this time it's with a mailing script I've been working on. Basically, when someone fills out a form, I want it to email me the information they filled out - it's not doing this, and I have no clue why not (there's no error message). Perhaps you could help me out? Here's the code:
And here's the actual mailing script itself (tickets.php):
Any help you can offer would be most appreciated.
|
![]() |
|
| Sani | Feb 5 2007, 05:01 PM Post #2 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Try changing $submit to $_POST['submit'].. |
![]() |
|
| Garath531 | Feb 5 2007, 11:38 PM Post #3 |
|
Look, up in the sky! It's a bird! It's a plane! It's Superman!
![]() ![]() ![]() ![]() ![]() ![]()
|
My advice would be to use
Rather than fooling with PhP |
![]() |
|
| Ben | Feb 6 2007, 01:08 AM Post #4 |
|
Quantum-locked when observed.
![]()
|
The "mailto:" method will not mail the information in the form. Rather, it opens up one's email program and puts that information in the email (if you're lucky). If you want to send the email from your server, you need to use a server-side scripting language. Sani's advice is correct. In your if($submit) condition to check if the form has been submitted, you should use $_POST['submit'] instead, because register_globals is probably on. |
![]() |
|
| Jpec07 | Feb 6 2007, 02:03 AM Post #5 |
|
Member
![]() ![]() ![]() ![]()
|
I actually tried it, $submit = $_POST['submit']; before if($submit). The problem is that I can't be sure if that was the problem or not. It turns out the SMTP server my host was using wasn't enabled for my hosting plan, so I made a switch to one that was and now all is good. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Technology Chat · Next Topic » |
| Track Topic · E-mail Topic |
3:00 PM Jul 11
|



![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)




3:00 PM Jul 11