Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-18-2005, 07:53 PM   PM User | #1
NTGre
New Coder

 
Join Date: Nov 2005
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
NTGre is an unknown quantity at this point
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???
NTGre is offline   Reply With Quote
Old 12-19-2005, 05:52 PM   PM User | #2
rlemon
Senior Coder

 
Join Date: Apr 2005
Posts: 1,051
Thanks: 0
Thanked 0 Times in 0 Posts
rlemon is on a distinguished road
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 ---<
rlemon is offline   Reply With Quote
Old 12-19-2005, 09:59 PM   PM User | #3
NTGre
New Coder

 
Join Date: Nov 2005
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
NTGre is an unknown quantity at this point
Thnx..

thnx
NTGre is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:15 AM.


Advertisement
Log in to turn off these ads.