Click to See Complete Forum and Search --> : items-popup-picklist


big boy
11-06-2003, 10:32 AM
I got a script called items-popus-picklist (written by Pankaj Mittal) from this site but am having some trouble. It uses a pop-up window to pick a list of options and puts them back on the parent page. However, I can't figure out how to get them from there to process them with a cgi. I added a submit button and want to process the user's choices but have not been able to figure it out. I would appreciate it if someone can point me in the right direction. I can post the code if desired.

Khalid Ali
11-06-2003, 10:49 AM
are you submitting the form to your CGI application?
show me whats in the action attribute of the form element and shoe me the submit buttons html code

big boy
11-06-2003, 11:12 AM
The action code is:
<form method=post action="filesel.cgi">

I just used basic submt buttons:
<INPUT TYPE="submit" VALUE="Submit" id=submit1 name=submit1>

Khalid Ali
11-06-2003, 11:18 AM
interesting...now there only 2 possibilities

1. there are no values in the form fields
or
2. your CGI app is screwed up

big boy
11-06-2003, 11:26 AM
The app could be the problem but at this point, I am just trying to display what was picked. I am not sure what the variables are named. I tried assigning names in modify.html but that did not work. I guess I am wondering if they will have names like a regular input field or are they in an array? If they are in an array, how can those be captured in the cgi?

Thanks for your help.

Khalid Ali
11-06-2003, 12:09 PM
to test the application,you should have names for all form elements and every element that will have value,it will show up in the CGI,if it does not make sure the app is working properly.

big boy
11-06-2003, 01:15 PM
What I am looking for are the "names for all form elements" so that I may reference them in the CGI. I have used the names that are specified in modify.html and they don't work. I think when modify.html passes the names back to the parent form, the names change or something. Is there a javascript function that will list all of these elements?