Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 9th, 2003, 08:32 AM
Registered User
 
Join Date: Jul 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default HTML: <FORM> embedded in code

Hi, I embedded the following code in order to update a database. Everything on the page works good but when I press the 'Save the changes' button nothing happens although I see the button beeing pressed. Otherwise the 'Cancel the changes' button works fine. Is there something wrong in this code? Thanks for help!


Response.Write "<FORM ACTION='Calendar_Update.asp' METHOD='Get' NAME='frmCalendar'>" & _
                    "<TABLE BORDER='1' WIDTH='100%'>"


While Not objRSGames.EOF

If objRSGames("Team_Home") <> "" AND objRSGames("Team_Away") <> "" Then

Response.Write "<TR>" & _
                      "<TD WIDTH='16%' VALIGN='top' ALIGN='center'>" & objRSGames("Official_Game_Number") & "</TD>" & _
                    "<TD WIDTH='16%' VALIGN='top' ALIGN='center'>" & fncFmtDate(objRSGames("Game_Date"),"%d/%m/%Y") & "</TD>" & _
                    "<TD WIDTH='8%' VALIGN='top' ALIGN='center'>" & objRSGames("Round") & "</TD>" & _
                    "<TD WIDTH='30%' VALIGN='top' ALIGN='center'>" & objRSGames("Team_Home") & "</TD>" & _
                    "<TD WIDTH='30%' VALIGN='top' ALIGN='center'>" & objRSGames("Team_Away") & "</TD>" & _
                    "</TR>"
Else


Response.Write "<TR><TD WIDTH='16%' VALIGN='top' ALIGN='center'><INPUT TYPE='Text' NAME='GameNumber' SIZE='6' ></TD>" & _
                    "<TD WIDTH='16%' VALIGN='top' ALIGN='center'><INPUT TYPE='Text' NAME='GameDate' VALUE='" & _ fncFmtDate(objRSGames("Game_Date"),"%d/%m/%Y") & "' SIZE='10'></TD>" & _
                    "<TD WIDTH='8%' VALIGN='top' ALIGN='center'>" & objRSGames("Round") & "</TD>" & _
                    "<TD WIDTH='30%' VALIGN='top' ALIGN='center'><SELECT SIZE='1' NAME='TeamHome'>" & _
                    "<OPTION VALUE=0>Choose the team</OPTION>"

While Not objRSTeams.EOF

Response.Write "<OPTION VALUE='" & objRSTeams("Team_Name") & "'>" & objRSTeams("Team_Name") & "</OPTION>"

objRSTeams.MoveNext
Wend

objRSTeams.MoveFirst

Response.Write "</SELECT>" & _
                    "</TD>" & _
                    "<TD WIDTH='30%' VALIGN='top' ALIGN='center'><SELECT SIZE='1' NAME='TeamAway'>" & _
                    "<OPTION VALUE=0>Choose the team</OPTION>"

While Not objRSTeams.EOF

    Response.Write "<OPTION VALUE='" & objRSTeams("Team_Name") & "'>" & objRSTeams("Team_Name") & "</OPTION>"

    objRSTeams.MoveNext
    Wend

    objRSTeams.MoveFirst

    Response.Write "</SELECT></TD>" & _
                        "</TR>"

    End If
    objRSGames.MoveNext

    Wend

    Response.Write "</TABLE>"

    Response.Write "<P ALIGN='center'><INPUT TYPE='Submit' VALUE='Save the changes'>" & _
                        "&nbsp;&nbsp;&nbsp;<INPUT TYPE='Reset' VALUE='Cancel the changes'>" & _
                        "</FORM>"
    End If


 
Old July 9th, 2003, 10:05 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Can you show a small example of the actual HTML that is output?

--

Joe





Similar Threads
Thread Thread Starter Forum Replies Last Post
embedded <xsl:element> into <xsl:with-param> petergoodman XSLT 2 July 9th, 2008 06:36 AM
Chapter 4 "<<>>" characters in form mdchan BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 August 13th, 2005 03:19 PM
<style> tags in a <body> vs. <div> bcat BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 March 27th, 2005 08:50 AM
HELP: XSL -> HTML <select selected=true> jedbartlett XSLT 4 October 7th, 2004 11:16 PM
Dynamic HTML <<Events>> babloo81 Javascript 2 December 29th, 2003 12:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.