Go Back   Website Publisher Forums > Website Development > HTML, CSS, Layout, and Design

Notices

Reply
 
Thread Tools Rate Thread
Old 01-29-2010, 05:51 PM   #1
connelly73
Registered
 
Join Date: Dec 2009
Posts: 20
Create a Form and Submit

Hi I'm very new but would like to know if anyone can recomend a good tutorial that can instruct me on how to create form on my site to collect data for guitar equipment reviews.

I have created some basic forms my problem is what to do with the submit button. I would like the information to go to some form of php database and be displayed on a page in my site but I'm very green and new to this and would like some info on a good tutorial or a free software package that could do it without any programming knowledge if there are no good tutorials out there.

thanks.
connelly73 is offline   Reply With Quote

Old 01-31-2010, 09:05 AM   #2
Chris
Administrator
 
Chris's Avatar
 
Join Date: Feb 2003
Location: East Lansing, MI USA
Posts: 6,971
You could just use a software package like wordpress to be your CMS, and thus use it's built in comment feature. Builing one from scratch for a php newbie is going to be quite a difficult undertaking and not something I would recommend.

Here is a tutorial though

http://www.websitepublisher.net/arti...p-mysql-intro/
__________________
Chris Beasley - My Guide to Building a Successful Website
Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives Compost Tumbler
Chris is offline   Reply With Quote
Old 01-31-2010, 02:55 PM   #3
connelly73
Registered
 
Join Date: Dec 2009
Posts: 20
Cheers will check it out. Done some basic php stuff in the meantime and managed to get a basic form to email one going and a ile upload script working. Starting to understand the basics its just trying to find out what code etc... to use to get the submit to create a new page on my site with the details from the form that was sub into into it.
connelly73 is offline   Reply With Quote
Old 02-01-2010, 02:36 AM   #4
Blue Cat Buxton
Not that blue at all
 
Blue Cat Buxton's Avatar
 
Join Date: May 2004
Location: UK
Posts: 925
I have been messing about with forms over the weekend, and came accross this article which sorted out my issue on why checkboxes were not returning the correct results.

It may help http://www.tizag.com/phpT/examples/formex.php
Blue Cat Buxton is offline   Reply With Quote
Old 02-01-2010, 03:11 PM   #5
connelly73
Registered
 
Join Date: Dec 2009
Posts: 20
THANKS!! On first reading this is what I'm looking for. Will let you know how I get on.
connelly73 is offline   Reply With Quote
Old 02-02-2010, 08:12 AM   #6
Chris
Administrator
 
Chris's Avatar
 
Join Date: Feb 2003
Location: East Lansing, MI USA
Posts: 6,971
Quote:
Originally Posted by Blue Cat Buxton View Post
I have been messing about with forms over the weekend, and came accross this article which sorted out my issue on why checkboxes were not returning the correct results.

It may help http://www.tizag.com/phpT/examples/formex.php
Oh yes that checkbox issue is annoying, I remember having difficulty with that 10 years ago, surprised browsers haven't fixed it.
__________________
Chris Beasley - My Guide to Building a Successful Website
Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives Compost Tumbler
Chris is offline   Reply With Quote
Old 02-08-2010, 03:52 PM   #7
connelly73
Registered
 
Join Date: Dec 2009
Posts: 20
GOT IT. After some research, learning, and much trial and error I finally managed a basic form and search. If you get a chance I would appreciate it if anybody could have a look and see if it looks OK.

Will need to get some review added now and some code to stop abuse and swear words being added but the basics are there thanks guys for the help.
connelly73 is offline   Reply With Quote
Old 02-08-2010, 04:56 PM   #8
Mr. Pink
Registered
 
Mr. Pink's Avatar
 
Join Date: Sep 2008
Location: USA
Posts: 149
You should put a direct link to the form page, in your post (I had trouble finding the page) so people can review it.

It looks very basic, but I don't like the alignment of the text-fields. They are all snug up against the edge of your page design. You should have a small margin, so that it looks more polished up.

Other than that I think it's OK.
Mr. Pink is offline   Reply With Quote
Old 02-09-2010, 09:13 AM   #9
Blue Cat Buxton
Not that blue at all
 
Blue Cat Buxton's Avatar
 
Join Date: May 2004
Location: UK
Posts: 925
I agree with Mr Pink that the formating of the result could do with some refinement but the form itself seems to work well. I also like the a -z search (something I use as well as it helps people get more results to review)

On a technical issue, If you click 'M' it comes up with a review for a Peavey VYPYR 15 Watt Practice Amp, so not sure why this is in the M category?
Blue Cat Buxton is offline   Reply With Quote
Old 02-09-2010, 03:47 PM   #10
connelly73
Registered
 
Join Date: Dec 2009
Posts: 20
Quote:
Originally Posted by Blue Cat Buxton View Post
I agree with Mr Pink that the formating of the result could do with some refinement but the form itself seems to work well. I also like the a -z search (something I use as well as it helps people get more results to review)

On a technical issue, If you click 'M' it comes up with a review for a Peavey VYPYR 15 Watt Practice Amp, so not sure why this is in the M category?
Thanks for the comments still learning and its been a steep learning curve. The M thing is a typo I think but having a little difficulty with the a to z, as it returns any letter in the title and I would like just the first letter of the title but Im working on that. Thanks again
Link is http://www.guitarandsong.com/guitar-reviews.htm then click option on right hand menu.
connelly73 is offline   Reply With Quote
Old 02-12-2010, 03:36 AM   #11
mobilebadboy
Roll Tide!
 
mobilebadboy's Avatar
 
Join Date: Apr 2004
Location: Mobile, AL
Posts: 429
Quote:
Originally Posted by connelly73 View Post
as it returns any letter in the title and I would like just the first letter of the title but Im working on that.
A couple of options (both do the same thing). Change your_table and your_column.

PHP Code:
select from your_table where substring(your_column,1,1) = '$by' 
PHP Code:
select from your_table where left(your_column,1) = '$by' 
__________________
Shawn Kerr .com
mobilebadboy is offline   Reply With Quote
Old 02-13-2010, 07:53 AM   #12
Chris
Administrator
 
Chris's Avatar
 
Join Date: Feb 2003
Location: East Lansing, MI USA
Posts: 6,971
or

select * from your_table where your_column like '$by%'
__________________
Chris Beasley - My Guide to Building a Successful Website
Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives Compost Tumbler
Chris is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Rate This Thread
Rate This Thread:

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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Submit a form (POST) via PHP. Chris Website Programming & Databases 5 09-03-2007 05:36 AM
How much will it cost to form and run a corporation? snowstar Business and Legal Issues 1 03-01-2006 01:42 PM
Form in Publsiher 2003 jazzy12 HTML, CSS, Layout, and Design 6 04-30-2004 11:37 AM
Form positioning lo0ol HTML, CSS, Layout, and Design 7 12-06-2003 09:50 AM
More form junk... Stevens Website Programming & Databases 4 11-05-2003 06:09 AM



All times are GMT -7. The time now is 10:06 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
Site Copyright © 2003-2006 Jalic Inc. All rights reserved.