Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: Submit question

  1. #1
    New Coder
    Join Date
    Nov 2005
    Posts
    42
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Submit question

    Hello world

    i was using this to post some infos in my database

    PHP Code:
    <form enctype='multipart/form-data' action='upload.php' method='post' name='upload_form'>
    <
    table width='90%' border='0' align='center' style='width: 90%;'>
    <
    tr>
        <
    td>
            
    Select Category
            
    <select name='category'>
                
    $photo_category_list
            
    </select>
            
        
    Maxi,LP,CD,DVD
            
    <select name='category1'>
                
    $photo_category1_list
            
    </select>
            </
    td>

    </
    tr
    and i m tryied to make it look better..
    so i made this..

    PHP Code:
    <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#FF0000" bgcolor="#CCCCCC">
      <
    tr bgcolor="#333333">
        <
    td colspan="5"><div align="center" class="style4"><span class="style2">Wellcome $USER </span></div></td>
      </
    tr>
      <
    tr bgcolor="#CCCCCC" class="style1">
        <
    td><form action="" method="post" name="form1" class="style4">
          
            <
    div align="right">Media type
              
    <select name="select">
                <
    option>Pls Select This Field</option>
              </
    select>
            </
    div>
        </
    form></td>
        <
    td><div align="left"><span class="style4"><span class="style5"><span class="style6"><span class="style7"><span class="style8"><span class="style9"><span class="style4"></span></span></span></span></span></span></span></div></td>
        <
    td><form action="" method="post" name="form2" class="style4">
          
            <
    div align="center">Typos
              
    <select name="select">
                <
    option>Pls Select This Field</option>
              </
    select>
            </
    div>
        </
    form></td
    the problem is that i m using forms that i want to post all in my database when i submit.
    how i can do this???

  • #2
    Senior Coder
    Join Date
    Apr 2005
    Posts
    1,051
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you should only use a single form

    <form>
    <table>
    ...
    <element></element>
    ...
    </table>
    </form>

    name your elements properly and then retrieve them when you submit.
    public string ConjunctionJunction(string words, string phrases, string clauses)
    {
    return (String)(words + phrases + clauses);
    }
    <--- Was I Helpfull? Let me know ---<

  • #3
    New Coder
    Join Date
    Nov 2005
    Posts
    42
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thnx..

    thnx


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •