Jump to content

kite111

Members
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About kite111

  • Rank
    Newbie
  1. tried this code. now i'm getting undefined index for every var in $_______ starting in if statement submit..what's wrong? if(isset($_FILES['filename'])){ $errors = array(); $file_name = $_FILES['filename']['name']; $file_size =$_FILES['filename']['size']; $file_tmp =$_FILES['filename']['tmp_name']; $file_type=$_FILES['filename']['type']; $file_ext=strtolower(end(explode('.',$_FILES['filename']['name'])));}if($_POST['submit']=="Submit"); { $nameSender = ($_POST['name_sender']); $Address = ($_POST['address']); $contact_no = ($_POST['contactno']); $total_sent = ($_POST
  2. yeah. i have no idea why it doesn't insert in the db.
  3. just some text like address, contact no, date. i wanna insert them to the columns in a db table.
  4. No i didn't echo the variables.got no errors.the file uploaded in the folder but the text fields didn't insert. oh and that was VALUES.the S just got erased from the editing.still doesn't insert in the db table. what else should I try?
  5. Hello. I have a form with 5 textfields and 1 file field. It can already upload the file to a specified folder but I can't make it work when there are multiple textfields.It doesn't insert into the db table. How do you guys do it? <?phpif(isset($_FILES['filename'])){ $errors = array(); $file_name = $_FILES['filename']['name']; $file_size =$_FILES['filename']['size']; $file_tmp =$_FILES['filename']['tmp_name']; $file_type=$_FILES['filename']['type']; $file_ext=strtolower(end(explode('.',$_FILES['filename']['name'])));if(isset($_POST['name_sender'])){ $nameSender = $_
×
×
  • Create New...