close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Checkbox group insert and update values in one field

Thread began 8/10/2010 12:49 am by Roland Rogers | Last modified 8/20/2010 10:17 am by Roland Rogers | 7720 views | 19 replies


I did think that's what I was supposed to do from your initial suggestion in this thread and had tried adding:

$WA_fieldValuesStr = "".((isset($_POST["agent_id"]))?implode(", ",$_POST["agent_id"]):"")  ."";

at no avail.

Here is the source of the page which does seem to be showing the values set:


<div class="WADAInsertContainer">
  <form  action="test_table_Insert.php" method="post" name="WADAInsertForm" id="WADAInsertForm">
    <div class="WADAHeader">Insert Record</div>
    <div class="WADAHorizLine"><img  src="WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div>
    <table class="WADADataTable" cellpadding="0" cellspacing="0" border="0">
        <th class="WADADataTableHeader">ID:</th>
        <td class="WADADataTableCell"></td>
        <th class="WADADataTableHeader">agent_id:</th>
        <td class="WADADataTableCell">
<!--        <input type="checkbox" name="agent_id" id="agent_id" value="1" />           -->
<input type="checkbox" name="agent_id[]" value="1" />John Brandenburg<br /><input type="checkbox" name="agent_id[]" value="2" />Christine Marshall<br /><input type="checkbox" name="agent_id[]" value="3" />John Brandenburg<br /><input type="checkbox" name="agent_id[]" value="4" />christine Marshall<br /></td>
    <div class="WADAHorizLine"><img  src="WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div>
    <div class="WADAButtonRow">
      <table class="WADADataNavButtons" border="0" cellpadding="0" cellspacing="0">
          <td class="WADADataNavButtonCell" nowrap="nowrap"><input type="image" name="Insert" id="Insert" value="Insert" alt="Insert"  src="WA_DataAssist/images/Pacifica/Refined_insert.gif"  /></td>
          <td class="WADADataNavButtonCell" nowrap="nowrap"><a href="test_table_Results.php" title="Cancel"><img border="0" name="Cancel" id="Cancel" alt="Cancel"  src="WA_DataAssist/images/Pacifica/Refined_cancel.gif" /></a></td>
<input name="WADAInsertRecordID" type="hidden" id="WADAInsertRecordID" value="" />

It feels so close! I really appreciate your response so quickly to my post.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...