campaign form

This is a discussion on "campaign form" within the Web Page Design section. This forum, and the thread "campaign form are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 9th, 2006, 07:04
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,221
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to saltedm8
campaign form

would someone please tell me the best way to create a campaign form,

i need to take names, addresses, telephone numbers, email addresses, age, and comments.

but i need them to automatically imprint onto a html page, so it is easily printed out,

just a straight layout with seperating tables

name ! address! telephone! email !age! comments!

also if possible, i needed a 'counter' that i can put onto my main website to say how many people have signed ( maybe even an image )

thank you
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)

Last edited by saltedm8; Oct 9th, 2006 at 07:10.
Reply With Quote

  #2 (permalink)  
Old Oct 9th, 2006, 14:17
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,608
Thanks: 0
Thanked 6 Times in 6 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: campaign form

PHP/MySQL would work that way every one would be stored in the database. As for printing you can use CSS to display the data in a nice way and a print style sheet to ensure it prints out correctly.
__________________
I've got <style> and .class
Reply With Quote
  #3 (permalink)  
Old Oct 9th, 2006, 14:22
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,221
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to saltedm8
Re: campaign form

what if i was to make a 'email form',, then have it 'sent' to another file, then download that file when he time is rignt ? would that work, because the php and mysql is above me
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Reply With Quote
  #4 (permalink)  
Old Oct 9th, 2006, 14:29
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,608
Thanks: 0
Thanked 6 Times in 6 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: campaign form

You would need to use some language to write out a new file too. Would be easier imo to just inject the info to a database and have it display from the database as needed. Less files, less work. You could do it very quickly with DW's built in server behaviors. Although we will also help you along as needed as you know.
__________________
I've got <style> and .class
Reply With Quote
  #5 (permalink)  
Old Oct 9th, 2006, 15:52
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,221
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to saltedm8
Re: campaign form

sounds good,

i dont have a clue where to start,

i can create a seperate database for it,

but i have no idea about the steps to create the php codes,

would you be able to talk my through it ?

cheers
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Reply With Quote
  #6 (permalink)  
Old Oct 9th, 2006, 15:59
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,608
Thanks: 0
Thanked 6 Times in 6 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: campaign form

This should help get you started
http://www.php-mysql-tutorial.com/co...-using-php.php
__________________
I've got <style> and .class
Reply With Quote
  #7 (permalink)  
Old Oct 9th, 2006, 19:22
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,221
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to saltedm8
Re: campaign form

thanks mate

is it just this i need ??

Code: Select all
<?php
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = 'password';
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die                      ('Error connecting to mysql');

$dbname = 'petstore';
mysql_select_db($dbname);
?>
and what do i need to save it as ? - config.php ?

sounds easy enougth if that is all it is, - also, how do i point scripts to it ?

cheers
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Reply With Quote
  #8 (permalink)  
Old Oct 9th, 2006, 19:33
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,608
Thanks: 0
Thanked 6 Times in 6 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: campaign form

Just name it whatever you need to and include it at the top of the files that need the db connection like so.

<?php include("connection.php"); ?>
__________________
I've got <style> and .class
Reply With Quote
  #9 (permalink)  
Old Oct 9th, 2006, 19:38
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,221
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to saltedm8
Re: campaign form

ok, i have not done the database yet, but how do i create the form, so it works with the database

cheers
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Reply With Quote
  #10 (permalink)  
Old Oct 11th, 2006, 20:48
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,221
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to saltedm8
Re: campaign form

how would i make the form and make to connect with the database ?
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Reply With Quote
  #11 (permalink)  
Old Oct 15th, 2006, 01:58
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: campaign form

Everything you need is in the link that moojoo gave you. I looked it over and it's quite a nice tutorial.
Reply With Quote
Reply

Tags
printable form

Thread Tools

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
Hiding / Showing form fields based on previous form input John Alexander Hopper PHP Forum 1 Mar 10th, 2008 11:30
form variable within an iframe component of a form kissfreaque PHP Forum 3 Feb 29th, 2008 13:06
media campaign manager for global giant Web JobBot Job Opportunities 0 Oct 9th, 2006 11:42


All times are GMT. The time now is 04:49.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43