Hi all

i have a form as follows:

** file1.php**

    <form action="<?php echo $editFormAction; ?>" method="POST" enctype="multipart/form-data" name="tblMovment" id="tblMovment">

        <input name="MovDate" type="text" />

        <input name="MovAmount" type="text" />
        <input type="submit"  name="submit" id="submit" value="add invoice"  />
        </form>
  1. **I want to pass the Auto increment ID of the table above to another page (attach.php)
    then i can use it $_POST['ID'] to attach a file to the above "Invoice" ? **

  2. Is there any way to attach the files in the same form (I have two separated mySql Table one for Files(that ATTACHED to Invoices table) an the other for Invoices)??

Recommended Answers

All 2 Replies

Using hidden varable, u can pass values or post values

Like

<input type="hidden" name="id" value="<?php echo $yourId; ?>" />

Thank you brother
I solved that by using mysql_insert_id($connection);
Thank you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.