Hey Guys,,

I'm new to PHP and and contact forms, I'm in need of help for the current website I'm making for a local sporting community.

I have uploaded a current picture of what my contact us box (Name,Email,Message) looks like :

As you can see im using a CSS to position it and add the submit picture.If someone is able to develop a simple PHP script that suits the below form , it would be much appreciated.

Below is my html code :

<div class="contact_form">
            <form id="form1" name="form1" method="post" action="send.php">

                <label>Name
                    <span class="small">Add your name</span>
                </label>
                <input type="text" name="Name" />

                <label>Email
                    <span class="small">Add a valid address</span>

                </label>
                <input type="text" name="Email" />

                <label>Message
                    <span class="small">Communicate with us</span>
                </label>
                <textarea name="Message" cols="0" rows="7">

                <button type="submit" name="submit" value="Submit">Send Message</button>
            </form>

Thank you..

have you tried to write a script? if you post what you have i can run through it

Member Avatar for diafol

Nice form. There are umpteen resources for this on the internet. SO just to start you off, these are the variables that you need to check, filter, sanitize:

$_POST['Name'],$_POST['Email'],$_POST['Message'] 

As you have used POST method in your form, you can get your data as defined by ardav

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.