There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen blue screen boot computer connection crash css dell drive driver drivers email error ethernet excel explorer firefox firefox 3 hard drive internet internet explorer itunes laptop linux malware monitor network networking outlook outlook 2003 outlook express password printer problem problems ram router security slow software sound sprtcmd.exe trojan usb virus vista windows windows xp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Contact Form


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
Jaymie1989's Avatar
Senior Member with 333 posts.
 
Join Date: Apr 2007
Location: Gloucester, UK
Experience: Windows XP & Vista = Inte
23-Mar-2008, 04:40 PM #1
Contact Form
Hi,

I want to create a contact forum and i want to use my own database and not one from a third-party site.

How would I do this?
lumentec's Avatar
Computer Specs
Member with 70 posts.
 
Join Date: Mar 2008
Experience: Advanced
23-Mar-2008, 06:57 PM #2
You must own a domain name to do this.
Jaymie1989's Avatar
Senior Member with 333 posts.
 
Join Date: Apr 2007
Location: Gloucester, UK
Experience: Windows XP & Vista = Inte
23-Mar-2008, 07:57 PM #3
Quote:
Originally Posted by lumentec View Post
You must own a domain name to do this.
I do
Sequal7's Avatar
Computer Specs
Distinguished Member with 2,369 posts.
 
Join Date: Apr 2001
Location: Around the corner!
Experience: Including today?
23-Mar-2008, 09:01 PM #4
Quote:
Originally Posted by Jaymie1989 View Post
Hi,

I want to create a contact forum and i want to use my own database and not one from a third-party site.

How would I do this?
You want a contact forum or form? What type of database does your host allow?
Jaymie1989's Avatar
Senior Member with 333 posts.
 
Join Date: Apr 2007
Location: Gloucester, UK
Experience: Windows XP & Vista = Inte
23-Mar-2008, 10:27 PM #5
form, MySQL5
Sequal7's Avatar
Computer Specs
Distinguished Member with 2,369 posts.
 
Join Date: Apr 2001
Location: Around the corner!
Experience: Including today?
23-Mar-2008, 11:41 PM #6
What is the purpose of the form? Do you know what fields you want the form to have and should it email someone and store the data, or just store the data? How will you retrieve this data?

You could be more forth coming on what you want your form to so, and what it is for.
__________________
Good Luck on your fix

My real hobby..JoyCo
My real Job..(Second Hobby) IAFF Local 1865
Like the sites? My hobby is the one that created them!
Jaymie1989's Avatar
Senior Member with 333 posts.
 
Join Date: Apr 2007
Location: Gloucester, UK
Experience: Windows XP & Vista = Inte
24-Mar-2008, 12:09 AM #7
The form would be to contact me. with fields such as name, email address, drop down menu with the options of Comment, Question, Support, Other and a text box.

I would like it to be forwarded to my PM Box on my forum if possible?
TheRobatron's Avatar
Computer Specs
Senior Member with 470 posts.
 
Join Date: Oct 2007
Location: England
Experience: Intermediate
24-Mar-2008, 07:03 PM #8
It's just simple HTML and PHP that you need.
The form:
HTML Code:
<form action="processform.php" method="get"> <label for="name">Name:</label> <input name="name"  type="text" /> <label for="email">Email:</label> <input name="email" type="text" /> <select name="reason"> <option value="comment">comment</option> <option value="question">question</option> <option value="support">support</option> </select> <input type="submit" value="submit" /> </form>
And then any other fields. Then you'd need some basic PHP:
PHP Code:
$message .= "\n" $_REQUEST['name'];
$message .= "\n" $_REQUEST['email'];
// Request all the other fields in this way.
mail("youremail@email.com""Subject""$message""From: someone@mail.com"); 
That should work...
__________________
There's no place like 127.0.0.1

Jaymie1989's Avatar
Senior Member with 333 posts.
 
Join Date: Apr 2007
Location: Gloucester, UK
Experience: Windows XP & Vista = Inte
25-Mar-2008, 01:43 AM #9
Wouldnt I have to add anything to my mysql database?
TheRobatron's Avatar
Computer Specs
Senior Member with 470 posts.
 
Join Date: Oct 2007
Location: England
Experience: Intermediate
25-Mar-2008, 12:17 PM #10
It depends on what you want to do with it. If you want to store it on your site and then access it later in pages, then you could put it in a database, but using my code, it mails it to you directly and is not stored on the site. This is what most contact forms do.

You said you wanted the mail forwarded to your PM box on your forum. Is that this forum or a different one? It might be possible to send information to the server and make it look like a PM, but it's unlikely, as there will be validation code to stop spammers doing it.
__________________
There's no place like 127.0.0.1

Jaymie1989's Avatar
Senior Member with 333 posts.
 
Join Date: Apr 2007
Location: Gloucester, UK
Experience: Windows XP & Vista = Inte
25-Mar-2008, 07:56 PM #11
That would be this forum.
Sequal7's Avatar
Computer Specs
Distinguished Member with 2,369 posts.
 
Join Date: Apr 2001
Location: Around the corner!
Experience: Including today?
25-Mar-2008, 08:01 PM #12
Nope, you can't cross script (besides, to input into a database you need to know the username, password, IP, field values) and I am pretty sure you don't have that for techguy forums.

It is as TheRobatron said, a security risk that most scripts would stop from processing.
__________________
Good Luck on your fix

My real hobby..JoyCo
My real Job..(Second Hobby) IAFF Local 1865
Like the sites? My hobby is the one that created them!
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 07:53 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.