add.do 수정
This commit is contained in:
parent
29fff07c92
commit
7078a17073
|
|
@ -14,10 +14,9 @@
|
|||
$('#add').on('click', function() {
|
||||
|
||||
var formData = new FormData();
|
||||
formData.append("name", $('#name').val());
|
||||
//formData.append("name", "test1");
|
||||
formData.append("phone", "test1");
|
||||
formData.append("address", "test1");
|
||||
formData.append("name", $('#name').val());
|
||||
formData.append("phone", $('#phone').val());
|
||||
formData.append("address", $('#address').val());
|
||||
formData.append("upfile", $("input[name='upfile']")[0].files[0]);
|
||||
/* formData.append("upfile", $('#upfile').files[0]); */
|
||||
|
||||
|
|
@ -68,8 +67,10 @@
|
|||
</table>
|
||||
</form> -->
|
||||
|
||||
Name <input type="text" id="name" name="name" value="50"/><br>
|
||||
File<input type="file" id="upfile" name="upfile" >
|
||||
제품명 <input type="text" id="name" name="name" value=""/><br>
|
||||
가격 <input type="text" id="phone" name="phone" value=""/><br>
|
||||
별 <input type="text" id="address" name="address" value=""/><br>
|
||||
이미지 <input type="file" id="upfile" name="upfile" >
|
||||
<button id="add" type="button" class="btn btn-primary">Submit</button>
|
||||
|
||||
</body>
|
||||
|
|
|
|||
Loading…
Reference in New Issue