I have a form that I use to put servers in what we call maintenance mode. It's just a (dynamic) list of servers that the user will toggle a checkbox to put the respective server in maintenance mode. I'm using the objid (serverid) as the checkbox value, checking for null, and if not, then set the maintenance mode. However, I'm not passing anything at all. Below is my form and ASP code:

Secondly, given that toggle_maint contains exactly and precisely the value objid why would you then use LIKE in your query?

Thirdly, if the objid field in the DB is a NUMBER, then you should never put apostrophes around the value in the query.

Fourthly, what do you do if the user checks 2 or 3 or 4 of those checkboxes?

11-06-2012, 03:19 PM

dalezjc

1 Attachment(s)

Thanks for your input Old Pedant. Let me start over. Here's the form data I'm trying to capture. I have a list of servers that I want to either put into or take out of maintenance mode, based on their checkbox selection. (See image)

I'm not sure how to capture the serverid when the form is submitted. I thought I could use the serverid as the value object but no luck.

11-06-2012, 08:30 PM

Old Pedant

I would rather have seen the HTML instead of the screen shot.

You do that by bringing up the page in your browser, clicking on the VIEW menu of the browser, then the SOURCE or PAGE SOURCE menu item. That shows you the HTML as the browser sees it. Copy/paste the relevant code from that.

11-07-2012, 01:34 AM

dalezjc

That screenshot was a mockup because I was posting from home and didn't have access to my code. Here's my code: