/    Sign up×
Community /Pin to ProfileBookmark

Have Contact form but no Contact.php – how do I implement this?

So I’m a junior developer and got a new job recently. Long story short I bought a landing page template to save time because my specialty is in Search Engine Marketing and not so much Design. This particular template has a Contact Us form embedded in the footer of the website that is referencing a Contact.php file that doesn’t exist in the given files from the template. Cool, no big deal I just need to either make/download a Contact.php script. How hard could that be? Turns out extremely.

My question – can I download just any Contact.php script and put it in my database?

If so (even if i need to create my own which i can probably handle) – WHERE does it even need to go in my database?

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@rtretheweyAug 28.2014 — The world is full of those scripts. Just search on "formmail script" and you'll find thousands of them. Look for one that doesn't require you to put your Email address in the HTML for the <form> on your pages so spammers can't find it.

Scripts don't go in your database. You upload them to the server via FTP and set the 'action' attribute of the <form> tag to it's URL (ie. 'http://www.example.com/contact.php').
Copy linkTweet thisAlerts:
@jedaisoulAug 28.2014 — Just to clarify Rick's comments...

Any PHP script will expect data in name and value pairs that contain the info, [i]but they will not necessarily be the same[/i]. So you may need to amend the email form to send the info in the format expected by the PHP script. The alternative is to write your own script to match the form output...
Copy linkTweet thisAlerts:
@meowmixzauthorAug 28.2014 — Can I simply for instance find the attribute in the script for "Name" and change it to something like "Your Name" so that it looks for Your Name instead of Name? As I'm typing this I realize it's probably easier to just change the label itself in the HTML, isn't it?
Copy linkTweet thisAlerts:
@jedaisoulAug 28.2014 — Yes, amending the form to suit the script is probably the best solution, particularly if you are more familiar with html than php.
Copy linkTweet thisAlerts:
@meowmixzauthorAug 28.2014 — Awesome. I will keep all of this in mind when I add a contact page later. I decided to just remove the contact from the footer because it will hardly be used anyway. Thanks for all your help!
×

Success!

Help @meowmixz spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.21,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...