[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.0

run sql query for each form submitted data block

Asked by eaweb in Active Server Pages (ASP), VB Script, Hypertext Markup Language (HTML)

Tags: asp, vb, html

hi,

i have the following form in pageAAA.asp which submit to sqlupdate.asp:

<form action="sqlupdate.asp" method="post" name="sqlupdateForm" id="sqlupdateForm" style="margin:0">
<table width="640" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table width="640" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <th>&nbsp;</th>
          <th><div align="left">Name</div></th>
          <th><div align="left">Account Type </div></th>
          <th><div align="left">Account Number </div></th>
          <th>Delivery</th>
          <th>Changed</th>
        </tr>
        <tr>
          <td colspan="6"><hr size="5"></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td><b>GoldAVA1</b>&nbsp;</td>
          <td>Gold&nbsp;</td>
          <td>963852&nbsp;</td>
          <td align="center">
                                    <input name="mailprint_1" type="radio" value="Y"  checked>By Mail&nbsp;&nbsp;
                                    <input name="mailprint_1" type="radio" value="N">Online
                                    <input name="number" id="number" type="hidden" value="963852" />                              
                                    <input name="numbertype" id="numbertype" type="hidden" value="9" />
                                    <input name="numberdesc" id="numberdesc" type="hidden" value="Gold" />                                    
                              </td>
          <td align="center">Customer</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td><b>NormalAVA2</b>&nbsp;</td>
          <td>Normal</td>
          <td>654321&nbsp;</td>
          <td align="center">
                                    <input name="mailprint_2" type="radio" value="Y"  checked>By Mail&nbsp;&nbsp;
                                    <input name="mailprint_2" type="radio" value="N">Online
                                    <input name="number" id="number" type="hidden" value="654321" />                              
                                    <input name="numbertype" id="numbertype" type="hidden" value="3" />
                                    <input name="numberdesc" id="numberdesc" type="hidden" value="Normal" />                                    
                              </td>
          <td align="center">Customer</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td><b>PersonalAVA3</b>&nbsp;</td>
          <td>Personal&nbsp;</td>
          <td>789987</td>
          <td align="center">
                                    <input name="mailprint_3" type="radio" value="Y"  checked>By Mail&nbsp;&nbsp;
                                    <input name="mailprint_3" type="radio" value="N">Online
                                    <input name="number" id="number" type="hidden" value="789987" />                              
                                    <input name="numbertype" id="numbertype" type="hidden" value="1" />
                                    <input name="numberdesc" id="numberdesc" type="hidden" value="Personal" />                                    
                              </td>
          <td align="center">Company</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td><b>BasicAVA4</b>&nbsp;</td>
          <td>Basic&nbsp;</td>
          <td>123456</td>
          <td align="center">
                                    <input name="mailprint_4" type="radio" value="Y"  checked>By Mail&nbsp;&nbsp;
                                    <input name="mailprint_4" type="radio" value="N">Online
                                    <input name="number" id="number" type="hidden" value="123456" />                              
                                    <input name="numbertype" id="numbertype" type="hidden" value="1" />
                                    <input name="numberdesc" id="numberdesc" type="hidden" value="Basic" />                                    
                              </td>
          <td align="center">Company</td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td>
                  <br>
      <br>
                  <input name="client_id" id="client_id" type="hidden" value="alibaba" />
                  <input name="client_location" id="client_location" type="hidden" value="0202" />
      <table width="640" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="right" style="padding-right:4px"><input type="submit" name="Submit" value="Submit"></td>
          <td style="padding-left:4px"><input type="reset" name="Reset" value="Reset"></td>
        </tr>
      </table>
      <br>
      <br>
    </td>
  </tr>
</table>
</form>

in sqlupdate.asp i need to run a update query for each of the submitted account data block of the form
form data block 1 example:
<input name="mailprint_1" type="radio" value="Y"  checked>By Mail&nbsp;&nbsp;
<input name="mailprint_1" type="radio" value="N">Online
<input name="number" id="anb" type="hidden" value="963852" />                              
<input name="numbertype" id="atp" type="hidden" value="9" />
<input name="numberdesc" id="atp" type="hidden" value="Gold" />

form data block 2 example:
<input name="mailprint_2" type="radio" value="Y"  checked>By Mail&nbsp;&nbsp;
<input name="mailprint_2" type="radio" value="N">Online
<input name="number" id="number" type="hidden" value="963852" />                              
<input name="numbertype" id="numbertype" type="hidden" value="9" />
<input name="numberdesc" id="numberdesc" type="hidden" value="Gold" />

my problem is:
how must my form be submitted and/or how must my asp code in sqlupdate.asp be in order to run the update query "update datatable set mailprint= mailprintdata(1,2,3,4), number = numberdata, numbertype=numbertypedata, numberdesc=numberdescdata"

for each of the data block submitted?
how must the loop in the sqlupdate.asp be to run the query each data block
[+][-]10/19/09 04:51 PM, ID: 25609948Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Active Server Pages (ASP), VB Script, Hypertext Markup Language (HTML)
Tags: asp, vb, html
Sign Up Now!
Solution Provided By: Arasian
Participating Experts: 3
Solution Grade: A
 
[+][-]10/20/09 12:44 AM, ID: 25611746Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]10/20/09 06:30 AM, ID: 25613861Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/20/09 07:53 AM, ID: 25614786Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/21/09 08:41 AM, ID: 25625102Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/23/09 01:27 AM, ID: 25642239Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]10/26/09 10:07 AM, ID: 25664404Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]10/26/09 04:30 PM, ID: 25668056Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625