I actually ended up using submit buttons instead of images for form submits.
Main Topics
Browse All TopicsI am currently developing a CMS with plain jane ASP tied to a Access database. Not the best idea, but it's not my choice.
Anyway, one issue I am running into is creating the administration interface. More specifically, using images as buttons for adding and deleting articles out of the system. Essentially, it works like this, a page returns a list of articles in the database, and each one has the option for the user to either delete or modify it. The code for each row is as follows:
<tr>
<FORM action="articleEdit.asp" method="post">
<input type="hidden" name="articleID" value="<%= rsArticles("ArticleID") %>" />
<td><input type="image" name="submitEdit" src="../images/icons/link_
<td><input type="image" name="submitDelete" src="../images/icons/link_
</FORM>
<td><%= rsArticles("ArticleTitle")
<td><%= rsArticles("ArticleDescrip
</tr>
Now, this is all peaches and cream until I pass the values to the articleEdit page which is supposed to populate the corresponding fields for the article into text and textarea inputs. The SQL statement on articleEdit.asp is as follows:
updateSQL = "SELECT content.ArticleID, content.ArticleTitle, content.ArticleDescription
However, this is what is actually returned for articleID:
articleID=1&submitEdit.x=7
The first "1" is correct, but the rest of the statement is mucking up the SQL statement. Any ideas on how to resolve this issue?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: B_DorseyPosted on 2008-04-30 at 09:20:10ID: 21472185
can you just use a onclick event for the image and submit the form with that?
Example:
Select allOpen in new window