Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question on Autoresponder script

Status
Not open for further replies.

happyjack1

Technical User
Jan 16, 2003
3
US
I have a fully working auto-responder program for a subscription. I have
posted the actual code at:

The html form is at:

The first 2/3 of the program rewrites the html in the event that the user
does not fill in all required fields of the html form.

This is supposed to work like this:
1. Fill in form and leave 1 required field blank
2. The html is rewritten and errors are displayed where required fields are
blank
3. All previous settings that were selected in the form are retained
4. Complete the required field and press 'Subscribe'
5. The response script is displayed on screen
6. Response to the subscriber is now sent to the user
7. The completed data is sent to me at my email address.

Two Problems:
1. The respnse to the subscriber AND the data response to me is sent upon
activation of the 'Response' button on the HTML form page. The corrected form
is never sent to me. Therefore, I never receive the corrected data. Must be
an *else* missing somewhere???

2. I want a link to show at the bottom of the response email to the
subscriber. I can't get my code to work. You can see this code at the end of
the program (last 3-4 lines of code. How can I change this??

THX!!
Jack
 
Jack,

Sounds like you'd be better off having JavaScript to validate your data at the client side, that way you don't need to rewrite the HTML with values in it as per what was sent, as th eform will only submit, if the required fields pass the Javascript validation

Just a thought
--Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top