#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    10
    Rep Power
    0
    I am using PHP to process a form that enquires on a LDAP database, and retrieves information depending upon the parameters input.
    This form more or less works.
    But I don't know how to pass the information back to the requester in a form.
    Currently the data is passed back only in text.

    I apologise for my ignorance, but my programming skills are minimal.

    Can anyone tell me where I can find out how to do this.

    Thanks in advance

    Tony
  2. #2
  3. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    Perth West Australia
    Posts
    757
    Rep Power
    15
    http://hotwired.lycos.com/webmonkey/ has some really good tutorials on PHP although mainly with MySQL as the backend - but looking through these should help you out a lot, but in brief, you basically create a form with the values returned from your query ie:

    <input type="text" name="MyVar" value="<?php echo $MyVar;?>">,
    to fill a select from a returned array you can use a loop ie:

    <select name="ThisVar">
    <?php for($x=0;$x <= $varcount;$x++) { ?>
    <option value="<?php echo $x;?>><?php echo $var[$x];?>
    <?php } ?>
    </select>

    You can also check radios or checkboxes using if() etc.

    Hope it helps.

    Simon.

    ------------------
    Simon Wheeler
    FirePages -DHTML/PHP/MySQL

Similar Threads

  1. Replies: 0
    Last Post: February 8th, 2004, 10:11 PM
  2. html 2 buttons on a page.
    By hussaim4 in forum HTML Programming
    Replies: 6
    Last Post: January 30th, 2004, 04:09 PM
  3. pass value from one php page to another php page
    By fluke_tony in forum PHP Development
    Replies: 4
    Last Post: January 27th, 2004, 09:55 PM
  4. POST results in BLANK HTML page
    By MO_PAshun in forum PHP Development
    Replies: 5
    Last Post: January 24th, 2004, 01:19 AM
  5. need to search an html page in html
    By lwaa in forum HTML Programming
    Replies: 8
    Last Post: January 23rd, 2004, 09:07 PM

IMN logo majestic logo threadwatch logo seochat tools logo