Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Re: [Alex] Creating additional fields

Quote Reply
Re: [Alex] Creating additional fields In reply to
Hello All:
Could somebody please help with this:
I would like to add the colum, dgraph_birth_date , to my dgraph table. I created the file join_include_birth.htm and made the entries:
<select name="dgraph_day" size=1>
<option selected>Day</option>
<option value=01>01</option></select>
<select name="dgraph_month" size=1>
<option selected>Month</option>
<option value=01>January</option>
</select><input type="text" name="dgraph_year" size="4" maxlength="4">&nbsp[Ex:1980]

I included the above file in join_include.htm and everything looks good. The colums dgraph_birth_date, dgraph_gender, etc were also created in the dgrap table.
In the check_dgraph sub routine of Join.pm right before the line "foreach my $col (keys %{$c}) {" ,
I inserted the statements:

if (!$cgi->{dgraph_birth_date}) {
$cgi->{dgraph_birth_date} = ("$cgi->{dgraph_day} . '-' . $cgi->{dgraph_month} . '-' . $cgi->{dgraph_year}" || '');
$IN->param(dgraph_birth_date => $cgi->{dgraph_birth_date});

I finally try to add a user by way of signup but constantly get "Birth Date can not be left blank".
Could someone help.

Thank you, peter curran

In Reply To:

You can add fields in the Database->Demographics->Add Column feature. Once you've added your columns, you will need to update your signup and profile templates to include the new information. Just make sure to label the form field exactly like the name in the database and Gossamer Mail will handle the rest.


Subject Author Views Date
Thread Creating additional fields Stoosh 3435 Jul 23, 2002, 5:47 PM
Thread Re: [Stoosh] Creating additional fields
Alex 3361 Jul 24, 2002, 9:24 AM
Thread Re: [Alex] Creating additional fields
pyc 3224 Sep 8, 2003, 10:04 AM
Thread Re: [pyc] Creating additional fields
Alex 3220 Sep 8, 2003, 10:10 AM
Post Re: [Alex] Creating additional fields-Solved
pyc 3212 Sep 8, 2003, 11:02 AM