Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 07-19-2007, 04:22 PM   #1 (permalink)
manuleka
Recruit
 
Join Date: Jul 2005
Posts: 2
manuleka is on a distinguished road
simple php registration form

i'm doing a simple site for a friend and one of the pages is gonna have a registration form! i'm very new to php and wanting to learn more but i need to know if its possible to have a form that will handle a few inputs..

for example:

name:
contacts: email, phone, address, region etcs
extras... etc etc

will it be possible to have a form handler that will send all this information to an email once submitted? i'm after something simple...

are there readly available scripts for this? or can anyone throw me one? so i can customize it myself? i'll learn as i go through it i suppose...

thanks
manuleka is offline   Reply With Quote
Old 07-19-2007, 05:40 PM   #2 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,161
Belisarius is on a distinguished road
Yes, it is possible. In fact, it's what PHP was designed to do.

First off, since you're new to PHP, I strongly suggest you get to know the official PHP documentation page, as it will contain all the answers to your questions in some shape or form. If you can't find the answer there, we can help here.

Specifically, you might want to look at the tutorial found there, as it contains a simple example of how to process forms. Additionally, sending mail is very simple if PHP is setup to do it (you'll probably need to check with your hoster in order to find out if it is or not). Check out the mail function.
__________________
GitS
Belisarius is offline   Reply With Quote
Old 07-20-2007, 01:04 AM   #3 (permalink)
manuleka
Recruit
 
Join Date: Jul 2005
Posts: 2
manuleka is on a distinguished road
thanks Belisarius... so my host will have to have email function enabled?
manuleka is offline   Reply With Quote
Old 07-20-2007, 01:26 PM   #4 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,161
Belisarius is on a distinguished road
To use the "mail" function I linked to, yes. Alternately, you could obtain the Mail Package from PEAR. PEAR is a repository of addons to PHP, and is hosted on PHP's domain. Frequently, if you can't find what you want in PHP by default, you can find it at PEAR.
__________________
GitS
Belisarius is offline   Reply With Quote
Old 07-20-2007, 01:41 PM   #5 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,486
sde is on a distinguished road
Quote:
Originally Posted by manuleka View Post
thanks Belisarius... so my host will have to have email function enabled?
most hosts do .. if they don't, find a better one.

just make a test script. if they don't support it, you will most likely seen an error.
__________________
Mike
sde is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML form preview then INSERT using PHP & MySQL SteveSoler PHP 7 08-19-2008 08:26 AM
php $_POST with multiple hidden form elements madhumati PHP 2 03-19-2006 07:26 AM
PHP 5.0.4 and 4.3.11 Released sde Code Newbie News 0 04-20-2005 10:56 AM
Simple PHP MySQL code: confused. easilyi Everything SQL ( MySQL, MSSQL, DB2, Postgre, Oracle, etc...) 4 10-24-2004 07:53 PM
Passing form data to PHP with Javascript bdl PHP 5 07-03-2002 10:18 AM


All times are GMT -8. The time now is 09:24 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting