If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Adding custom fields  XML
Forum Index » Support Forum
Author Message
Anonymous



Hi, I tried to search for this answer but it didn't come up, so sorry for the wasted space!

I am modifying this guestbook into a signup form for a dodgeball league I am starting up. I already made it make all entries private by default, but I would like to add my own fields, like phone number, and a radio button or checkboxes for certain other things.

What files would I have to edit in order to add my own fields and have them show up under the "private" section?

If it's not obvious, I'm new to PHP and MySQL but not programming in general. Thanks for your time!
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

A lot I'm afraid. You would have to make new fields in the book_data table of your MySQL. You would also have to make the templates for the forms. To be honest it would be simpler to just write your own script from scratch as I doubt you require 75% of the guestbooks scripting. I assume you know HTML and how to make forms and so you just need to learn some basic PHP for form handling and storing the data.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



Carbonize wrote:I assume you know HTML and how to make forms and so you just need to learn some basic PHP for form handling and storing the data.


Hmm, come to think of it, that does sound easier. I am familiar with HTML, and I guess the complexity of your guestbook scared me from the PHP side of it!

Thanks for your advice, and for writing the code.
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

lol it's not my guestbook, I'm just a user/modifier. As you know programming you will be familiar with most of how PHP works, if you program in C/C++ then you wil be very familiar indeed. PHP is simpler than programming in many ways. For a start you do not have to declare nor define variables as they get created on first use. I say give it a go, you'll be suprised at how easy the basics of PHP are.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum