0

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)??

Edited by Ahmed Goran

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by Ahmed Goran
0

Using hidden varable, u can pass values or post values

Like

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

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.