1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

php form default value

Discussion in 'Software Development' started by php_beginner, Aug 7, 2012.

Thread Status:
Not open for further replies.
Advertisement
  1. php_beginner

    php_beginner Thread Starter

    Joined:
    Aug 7, 2012
    Messages:
    1
    Hi...
    I have a question on how to create and display a default form field value. The line looks like this

    <tr id="one"><td><input type="radio" value="1st value" name="myradiobutton1"/>I/C
    <br><input type="radio" value="2nd value" name="myradiobutton1"/>Passport
    </td>
    <td><br><label><input type="text" name="no_ic" value='<?php if($no_penginap)echo $no_penginap; ?>' maxlength="12"></label>
    <br><br>
    <label><input type="text" name="no_passport1" value='<?php echo $no_passport1; ?>' maxlength="12"></label><br/>&nbsp;<br/>
    </td>
    </tr>

    i want to create the default value that will be displayed when we view it, but it can be written over if i want to change it. Can anyone help me?

    Thanks.
    :confused:
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1064258