#57564
05/06/2004 10:32 AM
|
Joined: Sep 2001
Posts: 672
Member
|
Member
Joined: Sep 2001
Posts: 672 |
I wanted dropdowns in my public_register_form file, so I took the initiative and tried to figure it out on my own. Someone please check my code. It seems to be working, but I wanna make sure its not sloppy my @gender = qw(Male Female); #my $es=ah = (keys %select_list)[0]; my $array1_index = 0; foreach (@gender) { last if $select_list{$_} =~ m/selected/; $array1_index++ }
# Custom 3 print &GenerateLineHTML($vars_registration{custom3_field_use}, $vars_registration{customfield3}, "", "customfield3", "dropdown", { Male => "$vars_wordlets_mods{male_option}", Female =>
"$vars_wordlets_mods{female_option}", },$array1_index, @gender); oh and then I had to code some error checking in ubb_profile so I hope this is right too # check Gender if ($in{customfield3} =~ "blank1") {
#print qq%Content-type: text/htmlnn%; print header( -charset => "$masterCharset", -type => "text/html", );
&StandardHTML("$vars_wordlets_err{gender_invalid}"); }
|
|
|
#57565
05/06/2004 10:04 PM
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Why not just use the gender modification :x...
|
|
|
#57566
05/06/2004 11:09 PM
|
Joined: Sep 2001
Posts: 672
Member
|
Member
Joined: Sep 2001
Posts: 672 |
|
|
|
#57567
05/06/2004 11:22 PM
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
|
|
|
#57568
05/07/2004 2:20 AM
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Havoq, when are you going to upgrade already lol; half the mod's you work on making are made for 6.6+ :x...
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 70
Joined: January 2007
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|