Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8266031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:00:50+00:00 2026-06-08T05:00:50+00:00

I have 8 columns here.. The scenario is.. What if the user has only

  • 0

I have 8 columns here..
The scenario is..
What if the user has only one previous employment record? How to ignore the other fields that is leave as blank when submitted?

Employment Record

    <table class="main" width="73%" border="0" align="center" cellpadding="0" cellspacing="2">
        <form action='scripts/forms_script3.php' name='forml' method='post'>
            <tr>
                <th>
                    Position Held
                </th>
                <th>
                    Company/Tel. No.
                </th>
                <th>
                    Immediate Head
                </th>
                    <th colspan="2">Inclusive Years<br/>&nbsp;&nbsp;From&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;To&nbsp;&nbsp;&nbsp;&nbsp;</th>
                <th>
                    Hiring Salary
                </th>
                <th>
                    Last Salary
                </th>
                <th>
                    Reason/s for Leaving
                </th>
            </tr>
            <tr>
                <td>
                    <input type='text' name='aposheld' size='20' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='acomtel' size='40' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='aimmhead' size='20' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='afrom' size='5' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='ato' size='5' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='ahsal' size='8' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='alsal' size='8' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='areason' size='45' maxlength='75'/>
                </td>
            </tr>
            <tr>
                <td>
                    <input type='text' name='bposheld' size='20' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='bcomtel' size='40' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='bimmhead' size='20' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='bfrom' size='5' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='bto' size='5' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='bhsal' size='8' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='blsal' size='8' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='breason' size='45' maxlength='75'/>
                </td>
            </tr>
            <tr>
                <td>
                    <input type='text' name='cposheld' size='20' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='ccomtel' size='40' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='cimmhead' size='20' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='cfrom' size='5' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='cto' size='5' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='chsal' size='8' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='clsal' size='8' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='creason' size='45' maxlength='75'/>
                </td>
            </tr>
            <tr>
                <td>
                    <input type='text' name='dposheld' size='20' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='dcomtel' size='40' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='dimmhead' size='20' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='dfrom' size='5' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='dto' size='5' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='dhsal' size='8' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='dlsal' size='8' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='dreason' size='45' maxlength='75'/>
                </td>
            </tr>
            <tr>
                <td>
                    <input type='text' name='eposheld' size='20' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='ecomtel' size='40' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='eimmhead' size='20' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='efrom' size='5' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='eto' size='5' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='ehsal' size='8' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='elsal' size='8' maxlength='75'/>
                </td>
                <td>
                    <input type='text' name='ereason' size='45' maxlength='75'/>
                </td>
            </tr>
            <tr>
                <td colspan="8">
                    <div align="center">
                        <input type='submit' name='Submit' id='Submit' value='Save' />
                    </div>
                </td>
            </tr>

        </form>

    </table>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T05:00:52+00:00Added an answer on June 8, 2026 at 5:00 am

    With a PHP loop? A very quick example would be:

    $letters = array("a", "b", "c", "d", "e", "f", "g", "h");
    
    foreach ($letters as $letter)
    {
       // does one of the fields contain input
       if ($_POST[$letter.'posheld']!="" || $_POST[$letter.'comtel']!="" || $_POST[$letter.'immhead']!="" || $_POST[$letter.'from']!="" || $_POST[$letter.'to']!="") 
       {
          // process record
       }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Python beginner here. I have a text file that is sorted into columns: fields
I have one scenario in which the user can define the column and that
Here is my scenario: I have two MySQL tables: Categories (columns: id, category) Items
Here is the problem: I have two columns in a table that, for each
i have day, month, year, value columns in one table, here i need to
Here is the scenario: I have a table that records the user_id, the module_id,
Here's the scenario: I have a table with 3 columns: 'KeyColumn', 'SubKeyColumn' and 'BooleanColumn',
Here is my scenario: I have a single table with 2 columns. ID and
Here is a simple example: Assume I have a customer table that has a
I have a user control that often has 2000 or so component controls (TextBoxes,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.