Menu

Not sending one field to the database

Help
germanic42
2005-02-22
2013-06-03
  • germanic42

    germanic42 - 2005-02-22

    I have a form with five fields.  The last field I do not want to send to the database.  I see that I can do this by deleting the field from the database line and admin line of the process.php.

    Two problems:

    In the admin page, the delete button will move to the last field.

    If I do not want to send the 4th field to the database, is there something that I can put into the process.php line where the fourth field will be blank and not have the fifth field in that spot?

    Thanks

     
    • Musawir Ali

      Musawir Ali - 2005-02-23

      if you know php, you can easily fix this problem. i cannot think of an easy way to for someone who doesn't know php, he/she might end up breaking the form processor.

       
    • germanic42

      germanic42 - 2005-02-23

      I've fooled around with this since I posted and found that if I eliminate one of the fields in the process.php file the output will remain in the MySql database (there is no field shift).  So that answers one question.

      The online datafile will have a field shift to the left, leaving no empty field, but I found that I could just have a hidden field and duplicate it where I want the missing field.  I could also duplicate another field in the place of the one that I don't want in the online datafile.  I don't know enough to do it another way.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.