Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Submitting forms

Featured Replies

How do I make it so when my viewers fill out an information page and hit "Submit" that the information gets send to me, or whomever it needs to be sent it?

How do I make it so when my viewers fill out an information page and hit "Submit" that the information gets send to me, or whomever it needs to be sent it?

 

Do you kknow any serverside languages?

  • Author
Do you kknow any serverside languages?

 

Not really... I am pretty new to this.

Not really... I am pretty new to this.

 

 

the only way i know is php... its a really simple basic thing to do, im sure you could do it.

 

post back here if you would like to hear more, ill give you a link to a tutorial for doing it, they provide code ect, you just have to put it all together.

  • Author

I would love to know more, I am trying to learn as much as I can before I venture into the job market for web development.

Depending on what your server can support

Either :

Matts script for CGI

or

sendmail for PHP

  • Author
Depending on what your server can support

Either :

Matts script for CGI

or

sendmail for PHP

 

How do I tell what my server can support? I use bluehost.com

How do I tell what my server can support? I use bluehost.com

 

Just had a quick look at your host and all accounts come with php5, it also states there is a free form generator included, might be worth a look

 

Pat

Make a new page an call it.... send_mail.php

 

inside send_mail.php enter this

 

<?php
$to = "YOUR EMAIL ADDRESS HERE";
$subject = $_POST["title"];
$name = $_POST["name"];
$message = $_POST["message"];
$messagesent = "From: $name Message: $message";
$from = $_POST["email"];
$headers = "From: $from";
mail($to,$subject,$messagesent,$headers);
echo "Your message has been sent, thank you.";
?>

 

Replace YOUR EMAIL ADDRESS HERE with your email, leave the " there.

 

 

 

now, in the file that you want this contact form to be in has to be php, html and css work in php pages... so if you have contact.html, you need to make it into contact.php, just open up your html editor and save the contact file as .php

 

now you need to make a form...

 

put this in your contact.php were you want the form to appear

 

<form action="contact.php" method="post">
Name: <input type="text" name="name"><br/>
Email: <input type="text" name="email"><br/>
Title: <input type="text" name="title"><br/>
Message: <br/><textarea cols="40" rows="5" name="message"></textarea><br/>
<input type="submit" value="Submit Message"><br/></form>

 

now.... make sure both contact.php and send_mail.php are in the same directory.

 

finally go into contact.php and enter this at the very top :

 

<?php 
include("send_mail.php"); 
?>

 

DONE

 

Hope this helps.

 

these are just the quick steps to making it and getting it done, but if you want to look at it and see what each bit of code does, this is the tutorial:

 

http://help-developer.com/index.php/2007/0...p-contact-form/

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.