www.webdeveloper.com
Results 1 to 2 of 2

Thread: [RESOLVED] PYTHON WITH HTML, html won't show after looping a scroll down menu

  1. #1
    Join Date
    Aug 2011
    Posts
    6

    resolved [RESOLVED] PYTHON WITH HTML, html won't show after looping a scroll down menu

    PHP Code:
    <div id="content">
    <
    p>
    Where would you like to go?
    </
    p>
    <
    form method="post" action="http://localhost/list2.psp">
    City:
    <
    select name "City">
    <%
    cursor.execute("SELECT * FROM location")
    result cursor.fetchall()
    for 
    record in result:
    %>
    <
    option value="<%= record[1] %>"><%= record[1] %></option>
    <%
    boop
    %>
    </
    select>
    State:
    <
    input type="text" id="State" name="State" size="20" maxlength="50"/>
    <
    br
    I have this script working. all except after the last 3 lines of code starting from "State: ..." nothing is printing after my scroll down menu... assuming mayb after </select>

    I have my code looping though html grabbing data through mysql, but after I run this, I can't see any of my other code. Am I missing something?

  2. #2
    Join Date
    Aug 2011
    Posts
    6
    it's because <&#37; boop %> in invalid..

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles