Jump to content

Nositi

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Nositi's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. So I was just missing the param enctype="multipart/form-data". Awesome, thanks guys.
  2. Hi, I found a bunch of tutorials and they all seem to do it the same way. For whatever reason, though, the file doesn't seem to be getting onto the server and I have no idea why. Here's the form: <html> <head> <title> File upload </title> </head> <body> <form action="process_file.php" method="post"><br/> Filename: <input type="file" name="uploadFile" value="uploadFile"> <input type="submit" value="Upload File"/> </form> </body> </html> process_file.php: <html> <head> <title>Processing uploaded file</title> </head> <body> <?php print $_FILES["uploadFile"]["name"] . $_FILES["uploadFile"]["type"] . $_FILES["uploadFile"]["size"] . $_FILES["uploadFile"]["tmp_name"] . $_FILES["uploadFile"]["error"]; ?> </body> </html> I've completely eliminated move_uploaded_file for now, because obviously there's no point if there's nothing there in the first place. So why might this not be working? I can post text just fine. Thanks.
  3. Actually, that didn't quite do it. I'm still having the same issue: I can't put something generated dynamically into the value of an input. ie if I just put value="$rowId" the value will be exactly that, $rowId. If this had worked, it should work just the same to call them name1, name2, name3, etc. And this doesn't work either: value="<?php $rowId ?>"
  4. Yes, this is correct. The button is to delete the row from the database.
  5. Hi, I've been toying with this a bit. I have a list, generated from database output, of names paired with emails. Along with each name/email tuple I want to have a button which should POST the name + email pairs such that I can deal with them when the page reloads. Simple enough. The problem I'm running into is the fact that I don't know how many rows of data I will have. Therefore I can't just statically name any of the form items. I've tried, as the data is being outputted from the query, keeping track of what row I'm on and simply appending this to the name + id of the submit form items. However, this doesn't seem to be allowed as the button is not recognized as having been clicked once the page reloads. How can I get around this? I know this is probably a simplistic issue and I've tried searching, but all that I can find on dynamic forms is not applicable. Thanks!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.