Jump to content

Recommended Posts

Hi guys,

 

I am really shit at PHP, but great with HTML.

 

Just designed this website, however, I can't get the form in the SIGN UP page to work.

 

Somebody help

 

Here is the url: http://isokodesign.com/kapricemodels.html?

 

Kind regards,

 

Andrew

 

NB:- I have attached the html file.

kapricemodels.html

Link to comment
https://forums.phpfreaks.com/topic/302062-contact-form-not-working/
Share on other sites

And “not working” means what?

 

The code has all kinds of issues, and I strongly recommend you keep it offline until it's actually ready for production. A live alpha test on the Internet can go horribly wrong.

  • The code is vulnerable to mail header injections, which effectively allows anybody to use your server as an open mail relay and send arbitrary messages (e. g. spam) to arbitrary addresses.
  • Your message is also vulnerable to cross-site scripting attacks (e. g. injection of malicious JavaScript code).
  • Why on earth would you put the passwords of your users and other personal data into a plaintext e-mail?
  • Putting a firstname into the From header makes no sense. The e-mail is coming from your server, so you must use your own address. Use Reply-To if you want to include the user's address.

The mail() function in general is bad, because it's far too low-level for the average programmer and the reason for many vulnerabilities.

 

Use a proper mail library and learn the basics of security (escaping, handling passwords etc.). The Internet is in fact open to everybody, not just nice people.

Edited by Jacques1

I already pointed you to the PHPMailer library. Either learn the basics of PHP and then write your own code. Or hire a professional programmer.

 

Stealing code from random websites and then selling it to your customers when you have no idea what that code does can get you into deep trouble. It's also simply unprofessional.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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