Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 385
  • Last Modified:

change thank you page on online form

I inherited a website and was asked to modify an online form.  The original form  was for requesting a sample.  New form is to sign up for a newsletter.  Problem is I need to create a unique thank you page that thanks them for signing up for the newsletter (not requesting sample).  I created new  asp page but cannot find the code on the form page which directs people to wrong page, thankyou.htm.  I don't know asp so I am kinda flying blind.  Where do I change the reference from thankyou.htm to thankyou_newsletter.asp?  Below is link to new form we are creating:

http://www.windmillslatwall.com/newsletter_signup.asp
0
nsitedesigns
Asked:
nsitedesigns
  • 3
  • 2
  • 2
2 Solutions
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
look at the form attribute, usually there's an ACTION attribute, this is where you specify the page to process the data.
0
 
slightwv (䄆 Netminder) Commented:
After the form action is 'successful' you should be able to just to a response redirect in the action code.

http://msdn.microsoft.com/en-us/library/ms524309%28v=vs.90%29.aspx
0
 
nsitedesignsAuthor Commented:
I could not find the code calling for the thankyou page.  Do you see it?
<form name="form1" method="post" action="email_newsletter.asp">
        <fieldset>
        <legend></legend>
        <p>It's easy to stay informed. Simply join our mailing list and receive Windmill Slatwall'sUpfront newsletter and eUpfront ezine containing valuable information about Windmill Slatwall  products and services available to you. (Items marked with a red asterisk are required in order to process request.)</p>
        <p>&nbsp;</p>
        <ol>
          <li>
            <label>Company Type:</label>
            <select size="1" name="CompanyType">
              <option value="Ak"<% if session("CompanyType") <> "" then %><% if session("CompanyType") = "Ak" then%> selected<% end if %><% end if %>>Architects</option>
              <option value="CH"<% if session("CompanyType") <> "" then %><% if session("CompanyType") = "CH" then%> selected<% end if %><% end if %>>Chain Store Headquarters</option>
              <option value="CS"<% if session("CompanyType") <> "" then %><% if session("CompanyType") = "CS" then%> selected<% end if %><% end if %>>Chain Stores</option>
              <option value="CT"<% if session("CompanyType") <> "" then %><% if session("CompanyType") = "CT" then%> selected<% end if %><% end if %>>Contractor</option>
              <option value="DS"<% if session("CompanyType") <> "" then %><% if session("CompanyType") = "DS" then%> selected<% end if %><% end if %>>Distributor</option>
              <option value="EX"<% if session("CompanyType") <> "" then %><% if session("CompanyType") = "EX" then%> selected<% end if %><% end if %>>Exhibit Builders</option>
              <option value="IN"<% if session("CompanyType") <> "" then %><% if session("CompanyType") = "IN" then%> selected<% end if %><% end if %>>Retail Store</option>
              <option value="MD"<% if session("CompanyType") <> "" then %><% if session("CompanyType") = "MD" then%> selected<% end if %><% end if %>>Mall Developer</option>
              <option value="MFR"<% if session("CompanyType") <> "" then %><% if session("CompanyType") = "MFR" then%> selected<% end if %><% end if %>>Product Mfr.</option>
              <option value="POP"<% if session("CompanyType") <> "" then %><% if session("CompanyType") = "POP" then%> selected<% end if %><% end if %>>Point-of-Purchase Mfr</option>
              <option value="SF"<% if session("CompanyType") <> "" then %><% if session("CompanyType") = "SF" then%> selected<% end if %><% end if %>>Store Fixture Mfr.</option>
              <option value="FM"<% if session("CompanyType") <> "" then %><% if session("CompanyType") = "FM" then%> selected<% end if %><% end if %>>Furniture Mfr</option>
              <option value="CM"<% if session("CompanyType") <> "" then %><% if session("CompanyType") = "CM" then%> selected<% end if %><% end if %>>Cabinet Mfr.</option>
              <option value="SP"<% if session("CompanyType") <> "" then %><% if session("CompanyType") = "SP" then%> selected<% end if %><% end if %>>Store Planner</option>
              <option value="OT"<% if session("CompanyType") <> "" then %><% if session("CompanyType") = "OT" then%> selected<% end if %><% end if %>>Other</option>
            </select>
          </li>
          <li>
            <label>How Did You Hear About Wind Mill Slatwall Products?</label>
            <select size="1" name="How_did_you_hear_of_WMW">
              <% if session("How_did_you_hear_of_WMW") <> "" then %>
              <option<% if session("How_did_you_hear_of_WMW") = "Magazine" then %> selected<% end if %>>Magazine</option>
              <option<% if session("How_did_you_hear_of_WMW") = "Previous Purchase" then %> selected<% end if %>>Previous Purchase</option>
              <option<% if session("How_did_you_hear_of_WMW") = "Referred" then %> selected<% end if %>>Referred</option>
              <option<% if session("How_did_you_hear_of_WMW") = "Trade Shows" then %> selected<% end if %>>Trade Shows</option>
              <option<% if session("How_did_you_hear_of_WMW") = "Website" then %> selected<% end if %>>Website</option>
              <% else %>
              <option>Magazine</option>
              <option>Previous Purchase</option>
              <option>Referred</option>
              <option>Trade Shows</option>
              <option>Website</option>
              <% end if %>
            </select>
          </li>
          <li>
            <label>Name: <em>*</em></label>
            <input type="text" name="Name" size="50" maxlength="50" <% if session("Name") <> "" then %>value="<%=session("Name")%>"<% end if %>>
          </li>
          <li>
            <label>Address: <em>*</em></label>
            <input name="Address" type="text" id="Address" size="60" maxlength="25" <% if session("Phone") <> "" then %>value="<%=session("Phone")%>"<% end if %>>
          </li>
          <li>
            <label>City:  <em>*</em></label>
            <input name="City" type="text" id="City" size="30" maxlength="25" <% if session("Phone") <> "" then %>value="<%=session("Phone")%>"<% end if %>>
          </li>
          <li>
            <label>State:  <em>*</em></label>
            <input name="State" type="text" id="State" size="2" maxlength="25" <% if session("Phone") <> "" then %>value="<%=session("Phone")%>"<% end if %>>
          </li>
          <li>
            <label>Zip:  <em>*</em></label>
            <input name="Zip" type="text" id="Zip" size="12" maxlength="25" <% if session("Phone") <> "" then %>value="<%=session("Phone")%>"<% end if %>>
          </li>
          <li>
            <label>Phone:</label>
            <input type="text" name="Phone" size="30" maxlength="25" <% if session("Phone") <> "" then %>value="<%=session("Phone")%>"<% end if %>>
          </li>
          <li>
            <label>Company:</label>
            <input type="text" name="Company" size="50" maxlength="50" <% if session("Company") <> "" then %>value="<%=session("Company")%>"<% end if %>>
          </li>
          <li>
                  <label>Email: <em>*</em></label>
                  <input type="text" name="Email" size="50" maxlength="50" <% if session("Email") <> "" then %>value="<%=session("Email")%>"<% end if %>>
            </li>
          <li></li>
          
          <li></li>
          <li>
            <input type="submit" name="action" value="Save Values - No Submit">
&nbsp;
            <input type="submit" name="action" value="Submit">
&nbsp;
            <input type="reset" value="Clear Form">
          </li>
        </ol>
        </fieldset>
      </form>

Open in new window

0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
slightwv (䄆 Netminder) Commented:
Just like your other question, look at the form action.

The code you need should be in email_newsletter.asp
0
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
can you post the contents of email_newsletter.asp?
0
 
slightwv (䄆 Netminder) Commented:
Be careful not to post anything considered 'sensitive' to a public website.
0
 
nsitedesignsAuthor Commented:
I see it now

Response.Redirect("thankyou.htm")

Thanks all!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now