[thelist] asp file referring to itself

Warden, Matt mwarden at odyssey-design.com
Thu Jun 1 17:26:45 2000


>What's the slickest way to post a form to the same asp file that the form
>is on?  

<form 
    name="howManyLicksDoesItTakeToGetToTheCenterOfaTootsieRollPop"
    action="<%Response.Write Request.ServerVariables("SCRIPT_NAME")%>"
    method="snailMail"
>

You only need the action= attribute stuff.

Then, create a submit button and name it... oh.... "submitted". Then,

IF NOT trim(Request("submitted"))="" THEN
    ' do form processing
ELSE
    ' write the form
END IF

--
mattwarden
mattwarden.com