Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2003
    Thanked 0 Times in 0 Posts

    simple selection box

    I am trying to make a simple selection box using php within my html page....within the form tags I have ...
    <select name="selections" size="4">
    foreach($op_array as $option){
    print "<option>$option</option>";



    Sorry if this looks sily! Im still trying to find my feet with php.

  • #2
    Super Moderator
    Join Date
    May 2002
    Perth Australia
    Thanked 101 Times in 99 Posts
    Hi Vic , your code does not look silly but the lack of a question does not help what do you want help with ?

    ....you would normally assign a value to the options ...

    echo "<option value=\"$option\">$option</option>";

    but other than that I am guessing ~
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)


    Posting Permissions

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