tags:

views:

28

answers:

2

hi i am having one form in that input fields are regno,name,date of birth etc with this input fields i need to attach image along with this input fields how i can do using php/javascript can anyone help me out thanks in advance

+1  A: 

Have a look at this link. It explains the basics.

The most important things is putting the right enctype on the form like this:

<form enctype="multipart/form-data" action="uploader.php" method="POST">

and then put a file input in the form:

 <input name="uploadedfile" type="file" />

The php side is explained at the link

Ikke
how i can write the code for only image uploading using php
Lavanya ks
+1  A: 
 <form action="" method="post" enctype="multipart/form-data">
  <input type="file" id="myfile" name="myfile" value=""/>
 </form>
dfilkovi
in the action part how i can write the code
Lavanya ks