Results 1 to 5 of 5

Thread: Visibility and invisibility of forms

  1. #1

    Thread Starter
    Member mylene_vbasic6's Avatar
    Join Date
    Jan 2002
    Posts
    61

    Visibility and invisibility of forms

    this form is already visible once u load the page

    form 1
    <td class="text">Processing Status:</td>
    <td width="44%" class="text"><select name="statName" ">
    <option value="LIB Signed">LIB Signed</option>
    <option value="Obligated">Obligated</option>
    <option value="MOA Signed">MOA Signed</option>
    <option value="For Voucher (DV) Preparation">For Voucher (DV) Preparation</option>
    <option value="D.V Prepared">D.V Prepared</option>
    <option value="Check Prepared">Check Prepared</option>
    <option value="Check Release">Check Release</option>
    </select></td>
    <td width="22%" class="text" >&nbsp;</td>

    </tr>
    <tr>
    <td rowspan="2" class="text"><div align="left">Remarks:</div></td>
    <td rowspan="2" class="text">
    <div align="left">
    <textarea name="statRemarks" cols="30" rows="10" id="textarea"></textarea>
    <input type="submit" name="Submit" value="Submit"></form>

    once u selected the MOA Signed....this form will appear

    form 2
    <td width="30%" bgcolor="ffffff" class="text"><div align="right">Amount</div></td>
    <td width="70%" bgcolor="ffffff" class="text"><input type="text" name="amount"></td>
    </tr>
    <tr>
    <td align="right" class="text">Check No: </td>
    <td align="right" class="text"><div align="left">
    <input type="text" name="checkNum">
    </div></td>
    </tr>
    <tr>
    <td align="right" class="text">Remarks</td>
    <td align="right" class="text"><div align="left">
    <textarea name="remarks" cols="20" rows="10"></textarea>
    </div></td>

    and at the same time the first form with dropdown box will be invisible.


    thanks in advance
    Birds with the same feather, are the same birds.

  2. #2
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945
    yeah... umm... can't read yer mind, buddy. What's the question?
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  3. #3
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    I think you're trying to hide a form.

    never tried this but try:
    document.getElementById('frmName').style.visibility='hidden'
    then this to make it visible:
    document.getElementById('frmName').style.visibility='visible'

    This is obviously JavaScript, not PHP.
    Have I helped you? Please Rate my posts.

  4. #4
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    Thumbs up

    Yeah, PHP is a server-side language, mylene, it can't do any hiding of forums unless you have it refresh the page and not output a certain portion of the page.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  5. #5

    Thread Starter
    Member mylene_vbasic6's Avatar
    Join Date
    Jan 2002
    Posts
    61
    hey thanks guys, especially to HOBO....i already figured it out
    Birds with the same feather, are the same birds.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width