Jump to content

Recommended Posts

Why use somebody else's stuff when making your own is easier?

 

$destination = "<destination email>";
$subject = "<subject line>";
$message = "message to be emailed>";
$header = "from: <whatever you want the from email to be>";
mail("$destination","$subject","$message","$header");

Link to comment
https://forums.phpfreaks.com/topic/226675-html-forms/#findComment-1172807
Share on other sites

Why use somebody else's stuff when making your own is easier?

 

$destination = "<destination email>";
$subject = "<subject line>";
$message = "message to be emailed>";
$header = "from: <whatever you want the from email to be>";
mail("$destination","$subject","$message","$header");

 

I know, those pesky wheels everyone else uses... right?

Link to comment
https://forums.phpfreaks.com/topic/226675-html-forms/#findComment-1172833
Share on other sites

Why use somebody else's stuff when making your own is easier?

 

$destination = "<destination email>";
$subject = "<subject line>";
$message = "message to be emailed>";
$header = "from: <whatever you want the from email to be>";
mail("$destination","$subject","$message","$header");

 

Because that's about as non-secure of a mail code as you can get. You are opening your site up to become a spam engine for anyone using it. There is no sanitizing of data, and there is no checking of input to see if it's of the correct type.

 

So the answer to your question, 'why use other people's code when making your own is easier', is 'if you don't know how to write proper code, you are better off using the code of someone who actually knows what they are doing'.

 

The wheel wasn't reinvented with the above code. A round object was made, and the creator decided it's the equivalent of a Michelin Goodyear. And while a round thing may server the same function as a tire - rolling - try putting a random round thing on a car and see what happens.

Link to comment
https://forums.phpfreaks.com/topic/226675-html-forms/#findComment-1173069
Share on other sites

So the answer to your question, 'why use other people's code when making your own is easier', is 'if you don't know how to write proper code, you are better off using the code of someone who actually knows what they are doing'.

 

The wheel wasn't reinvented with the above code. A round object was made, and the creator decided it's the equivalent of a Michelin Goodyear. And while a round thing may server the same function as a tire - rolling - try putting a random round thing on a car and see what happens.

 

 

Well said.

Link to comment
https://forums.phpfreaks.com/topic/226675-html-forms/#findComment-1173100
Share on other sites

The wheel wasn't reinvented with the above code. A round object was made, and the creator decided it's the equivalent of a Michelin Goodyear. And while a round thing may server the same function as a tire - rolling - try putting a random round thing on a car and see what happens.

 

I love it :)

Link to comment
https://forums.phpfreaks.com/topic/226675-html-forms/#findComment-1173190
Share on other sites

Why use somebody else's stuff when making your own is easier?

 

I can think of a million reasons.

 

I am an old time COBOL/FORTRAN/RPG/MAPPER programmer so I know the basics. But developing a website for my club is simply a hobby with me, not a profession. Thereby, I do not have the time to learn the complicated aspects of mySQL, php and javascript. Neither wlll reading all the tutorials, which I have done, do it.

 

So I rely on not having to reinvent the wheel and finding scripts that basically do what I want. Usually I can figure out how to modify it to suit my needs. But if not then Pikachu usually comes to my aid.

Link to comment
https://forums.phpfreaks.com/topic/226675-html-forms/#findComment-1174217
Share on other sites

 

The wheel wasn't reinvented with the above code. A round object was made, and the creator decided it's the equivalent of a Michelin Goodyear. And while a round thing may server the same function as a tire - rolling - try putting a random round thing on a car and see what happens.

thats the best quote i have ever seen ":) awesome

Link to comment
https://forums.phpfreaks.com/topic/226675-html-forms/#findComment-1175459
Share on other sites

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.