Re: Help with beginner form using lpthw.web



On 10/15/2011 8:03 AM pngrv said...
<snip>

<html>
<head>
<title>Please Use This Form To Request Resources</title>
</head>
<body>
<form action="/rs_request" method="POST">
Name:<input type="text" name="name"><br/>
Project:<input type="text" name="project"><br/>
# of Locations:<input type="text" name="locations"><br/>
# of Engines:
<select name="engines">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9+">9+</option>
</select><br/><br/>
<input type="submit">

Where do you close this tag?

<br/><br/>
</form>
$def with (request_string)
$if request_string:
I just wanted to say<em style="color: green; font-size: 2em;">$request_string</em>.
$else:
<em>Hello</em>, world!
</body>
</html>

And seeing this error:
<type 'exceptions.SyntaxError'> at /rs_request
invalid syntax Template traceback: File 'templates/rs_request.html', line 30</html> (rs_request.html, line 30)


Emile

.



Relevant Pages

  • Re: Question on Hondas
    ... the car with two fingers. ... because they always mod the engines, and honda engines often don't play that game so well. ... if you look carefully at the deck of a d-series motor for instance, you'll find that the steel liners stand slightly proud of the aluminum jackets. ... but shops just machine that off, the result being that when the motor's hot, there's expanded aluminum trying to lift the head gasket off the steel sealing ring. ...
    (rec.autos.tech)
  • Re: Obesity blackspot towns revealed - Discrimination Against Fat Northern Bastards??
    ... >I can show you much cheaper property than that....very much cheaper. ... Mind you she was not studiously developing a fat northern arse courtesy of copious volumes of 'Pie & Chips' and ale. ... occurrence of pain it would be wise to desist in the banging of my head ...
    (uk.politics.misc)
  • Re: What to do about Islam?
    ... Be sure to read the section "Henson versus Scientology" ... I don't think anyone has their head in the sand anymore. ...
    (rec.org.mensa)
  • Re: OT. Freedom Of Speech
    ... Our playing field was a 4-mile bus ride away. ... I've not looked at cycling helmet effectiveness. ... head injury - but it'll also improve the chances of yer neck snapping, ...
    (uk.people.support.depression)
  • Re: RFC: Building the Perfect Tabbed Pane (an tutorial article)
    ... manipulation. ... that logic must reside in a script block ... head shouldn't be an issue as long as the script is after the closing ...
    (comp.lang.javascript)