append abs_location "http://" $webenv(HTTP_HOST) "/neowebscript" set standard_procs "/neowebscript/include.nws" load_virtual $standard_procs emit_full_header "NeoWebScript Tutorial #2 Action Page"

NeoWebScript Tutorial
Order Form Action

This is the page that receives the data form the previous form. All we are doing is printing out what they entered in--pretty straight forward. We will continue to come back to the "musical order form" in future examples, and eventually do more complicated things with these results. But for now, we get to see what we typed :)

load_response if [info exists response(name)] { html "Your name is $response(name).

" h2 } if [info exists response(address)] { html "Your address is: $response(address).

" h2 } html "You want a: $response(type)." h2

The NeoWebScript code for that is listed below:

<nws>
load_response

if [info exists response(name)] {
    html "Your name is" 
    html "$response(name).<p>" h2
}
if [info exists response(address)] {
    html "Your address is: "
    html "$response(address).<p>" h2
}

html "You want a: $response(type)." h2
</nws>

Now that we've seen a form in action, let's go back to the tutorial and see how each part works, by clicking HERE. emit_full_footer