Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8359807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:16:04+00:00 2026-06-09T11:16:04+00:00

I have a little problem here.. I have a form and I write it

  • 0

I have a little problem here.. I have a form and I write it inside a table content, but it doesn’t work.. so let me show you my code:

<table>
<form name='editpo' method=POST action='js_buat_po.php?act=caricustomer&doit=update&uid=$data[uid]'>
<tr bgcolor=$warna>
<td><input type=hidden name='iddemand' value='$data[id_demand]'>$data[barcode]</td><td><input type='text' name='nama' value='$data[nama_item]'></td>
<td>$data[id_pr]</td>
<td align=right><input type='text' name='jumlah' value='$data[jumlah]'></td>
<td align=right><input type='text' name='regane' id='regane' value='$data[hargabeli]'></td>
<td align=right>".number_format($total,0,',','.')."</td>
<td align=right> <input type=submit value='UPDATE'></form><a href='js_buat_po.php?act=caricustomer&doit=hapus&uid=$data[uid]'>Hapus</a></td>
</tr>
</form>
</table>

And when I try check the output from inspect element.. I got something like this:

<tr bgcolor="#FFFFFF">
                    <form name="editpo" method="POST" action="js_buat_po.php?act=caricustomer&amp;doit=update&amp;uid=7"></form>
                    <td>
                        <input type="hidden" name="iddemand" value="2">accesories204</td><td><input type="text" name="nama" value="  AC komplit Mitsubishi Pick Up C. T120 / 2012 merk sanden   "></td>
                        <td>1</td>
                        <td align="right"><input type="text" name="jumlah" value="1"></td>
                        <td align="right"><input type="text" name="regane" id="regane" value="5000000"></td>
            <td align="right">5.000.000</td>
            <td align="right"> <input type="submit" value="UPDATE"><a href="js_buat_po.php?act=caricustomer&amp;doit=hapus&amp;uid=7">Hapus</a></td>
                        </tr>

I don’t know why my code become like this, any help please?

====UPDATE============

So how to do like this,
I have 1 table and dynamic which the data per tr is different, so lets say I wont to use update button per tr.. and how to create an array id for my tr identifier?

The format is like this..

<form>
<table>
<tr id='1'><td><input type='text' name='tes' value='xxx'></td><td><input type='submit' value='update'></td></tr>  <--- Submit the data from tr1
<tr id='2'><td><input type='text' name='tes' value='xxx'></td><td><input type='submit' value='update'></td></tr>  <--- Submit the data from tr2
</table>
</form>

How to do that? Can anyone help me?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T11:16:07+00:00Added an answer on June 9, 2026 at 11:16 am

    Format at worst should be

    <form>
        <table>
           <tr>
              <td>
                   <input ....>
              <td>
              <td>
                   <input type=submit value='UPDATE'>
              <td>
           </tr>
        </table>
    </form>
    

    In reply to your update: Looks like you need two forms:

    <table>
         <tr>
              <td>
                    <form ...>
                        <input..><input type=submit>
                    </form>
              </td>
         </tr>
         <tr>
              <td>
                   <form ...>
                        <input..><input type=submit>
                   </form>
              </td>
         </tr>
     </table>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a little problem with javascript form submit issue, here is the script
I'm having a little 'teething' problem here is my code so far <form name=job_app>
I have a little problem with Jquery getJSON function. my json here { entries:
I need a little push in the right direction. Here's my problem: I have
I have a little problem with jQuery: $('#form-submit').click(function () { $('#textarea, #name').removeClass('error-state').addClass('normal-state'); var myName
I have a little problem. I want to do automatic searching, but there is
lets get straight to my problem, the code I have written here does not
I have a little problem with my if(isset($_POST['submit'])) code. What I want is some
Hey guys, just another little problem here! Trying to write a quiz for a
I want to have little news boxes inside a content box, I want them

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.