Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Apr 2001
Posts: 44
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 44
I'm having a couple of problems. The first is that I want a multiple-option select on the registration page (and on the edit profile page, of course). I want a user to be able to choose one or more of the options in the select, and I want the UBB to take the selected values and poop out a 16x16 graphic for each. Here is what the select currently looks like:

--------------------------
in public_register_page.pl
--------------------------



-----------------------
in public_topic_page.pl
-----------------------

after:

$rating_line
~;

I put in:

@syntype = openparencloseparen;
$syntypelen = pushopenparen@syntype, $user_profile[16]closeparen;
$syntype = $user_profile[16];
@syntype = splitopenparen/:/, $user_profile[16]closeparen;
$syntypelen = scalaropenparen@syntypecloseparen;
$synloop = 0;
while openparen$synloop <= $syntypelencloseparen
{
$syntype[$synloop] = scalaropenparen$syntype[$synloop]closeparen;
if openparen$user_profile[16] =~ m/1/g closeparen {
# $syntype = qqopenparencloseparen;
}
if openparen$user_profile[16] =~ m/2/g closeparen {
$syntype = qqopenparensymbols evoke synesthesiacloseparen;
}
if openparen$user_profile[16] =~ m/3/g closeparen {
$syntype = qqopenparensound evokes synesthesiacloseparen;
}
if openparen$user_profile[16] =~ m/4/g closeparen {
$syntype = qqopenparentaste evokes synesthesiacloseparen;
}
if openparen$user_profile[16] =~ m/5/g closeparen {
$syntype = qqopenparentime evokes synesthesiacloseparen;
}
if openparen$user_profile[16] =~ m/6/g closeparen {
$syntype = qqopenparensight evokes synesthesiacloseparen;
}
if openparen$user_profile[16] =~ m/7/g closeparen {
$syntype = qqopenparensmell evokes synesthesiacloseparen;
}
if openparen$user_profile[16] =~ m/8/g closeparen {
$syntype = qqopenparentouch evokes synesthesiacloseparen;
}
if openparen$user_profile[16] =~ m/9/g closeparen {
$syntype = qqopenparentemp evokes synesthesiacloseparen;
}
if openparen$user_profile[16] =~ m/10/g closeparen {
$syntype = qqopenparenpain evokes synesthesiacloseparen;
}
if openparen$user_profile[16] =~ m/11/g closeparen {
$syntype = qqopenparennot sure about syn typecloseparen;
}
$synloop++;
}
and then I put in a:

$row .= qq~

to go back to the rest of the form

---

Now, I can get it to return the first value chosen, but nothing else. (It looks like it's ignoring everything else.) I want it to return ALL the values chosen and poop out a graphic for each.

My SECOND problem is that the form acts as though it's not saving the values. So if I'm editing my profile with this select, and I press "update profile" or whatever it is, and then go back and reload the update profile page, it "unselects" everything I had chosen/saved. Is it not saving the data, not passing the data on, what? ::sighs:: I think I need an array of some sort for it to catch the data in the first place, but I have no idea how to do it / do it and make it work.

(Just FYI, in case it matters: I have eight extra custom fields, the avatar hack, yadda yadda yadda, and everything is just peachy except for when I try to make something into a multiple select.)

Also... Do I need to change anything in any other file (such as the ""customfield1" => 80," in ubb_registration.cgi)? As you can tell, I'm pretty lost at this point.

Thanks for any help!!! =/


"If you think it's perfect, I'll fix it." - me
Sponsored Links
Entire Thread
Subject Posted By Posted
not saving/returning form data - PLEASE help! Eris 06/11/2002 8:16 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 410
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 12
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)