Webmaster Forums 101 - Free Help and Discussions
 
 
 

MEMBER REWARDS - Earn free advertising by participating in these forums! Click here for details.

Welcome to Webmaster Forums 101!

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Reply
 
Thread Tools Search this Thread Display Modes
Old 10th March 2003, 03:12 PM   #1

Username: Anonymous
Rank: WF101 Newbie
Join Date: Jan 2003
Posts: 25
Points: 0.00
Default form trouble

I am creating a html form (that opens in a new browser window, separate from the rest of the site), and wanting to send the information from it to an e-mail address, as well as to display a thank you page with a close button. This close button would close this browser window, leaving the user with the first browser window they were viewing before going to the form.

By the way, I have NO programming experience.

I am not using a CGI script, just a mailto action.

The way I have done it so far, is that the (javascript) validation gets done in the first file - the form (inside the submit tag, using onClick) and that works fine.
The next thing is that the action for this page is the name of the "thank you page", so in my case confirm.asp
(the reason why it is asp is because I was following a dreamweaver tutorial that told me to do that, I will come back to this later)
This page also contains a form, but all the fields are hidden (THIS is where I think my problem lies - I have not worked with hidden fields before and because I am not using cgi, I think I have not connected the two forms together, so the information is not being transferred across correctly - I assume something to do with DATA BINDING - this is where I could no longer follow the dreamweaver tutorial - I don't have UltraDev)

e.g. <input type="hidden" name="name" value=%=Request.Form("name")%>

In the example above, this is taken from confirm.asp (the thank you page), "name" is the name of the field in the first form (assessment.html), but I don't know where to state that the value of this field is to be taken from the form "assessment.html".

So the following happens:
- When you click submit on the first form, you are taken to a thank you page
- When you click OK on the thank you page, the info from the first form is sent to a specified e-mail address.

Problem#1:
The information is not being sent across to the 'thank_you' page (e.g. if I enter Peter in the name field, the value Peter is not sent to the thank you page; and therefore, not sent in the email)
Due of the same reason, I think, the e-mail (end info) is not arriving in the same format as it did previously (when not going through the thank you page) - instead it is a blank e-mail with an .ATT attachment that contains all the names of the fields but NOT the information entered in them.

Problem#2:
After this information is sent through to the e-mail address, the user is still left looking at the thank you page (and if they click on OK again - they send the info AGAIN), so I need for this window to close. Ideally, it should close when the person clicks OK (the same time the info gets sent via e-mail). I am not sure if this is possible. If not, I am not sure, if I could do something like close it a # of seconds after OK is clicked.

This seems like a simple enough thing - most sites have this:
1. Fill in
2. Thank You
3. Close

But for some reason - it has all become too complicated for me. I do not need a confirmation page (showing the user info they have entered), just a thank you (so they know it was sent).

I am more than happy to send you the two files (the .html and the .asp) to have a look at, just let me know!!!!

Any help on how to solve this or suggestions about a simpler way of doing this, are more than welcome!!!

Suni
Anonymous is offline   Reply With Quote
Old 10th March 2003, 06:05 PM   #2
Mr. Tech's Avatar

Username: Mr. Tech
Rank: Problem Solver
Join Date: Dec 2004
Location: Gold Coast, Australia
Posts: 2,166
Points: 1,025.61
Send a message via MSN to Mr. Tech
Default

Hi and welcome suni!

Is this what you mean:

1. You have a form that the user fills out. The form submits OK?

2. Then you want a thanks page where it should send you the email? You could use an ASP script to send you the email. I think you should have a look at some pre made scripts here:

http://www.hotscripts.com/ASP/Script...rm_Processors/

These will send you an email with all the required info.

3. And on the thanks page you want a window close link? Yes, that is possible. just a little javascript:

Code:
<a href="javascript:window.close()">Close this window</a>

Does this help you? If you want you can send the 2 files you mentioned above.

Tech
__________________
Please read the Forum Rules

Get rewarded for posting
- free advertising!

.::. [ Webmaster Resources ] .::. [ Web Design ] .::. [ Developer Tutorials ] .::.
Mr. Tech is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
custom fields in form using mysql viper Server-Side Scripting & Databases 17 25th February 2005 11:33 AM
Form Questions - Please Help Before I go crazy! newbie webmistress Website Design & Coding 3 22nd October 2003 02:26 AM
form mail jonDapron Server-Side Scripting & Databases 1 4th October 2003 11:41 AM
Form - hidden fields - autorespond - reply email Anonymous Website Design & Coding 1 21st June 2003 05:39 PM
FORM HELP Anonymous Server-Side Scripting & Databases 21 9th April 2003 12:46 AM

Login
User Name
Password


Featured Members


Featured Links


Useful Resources
Webmaster Resources
Developers Tools
Developer Tutorials


Partners

All times are GMT +10. The time now is 08:06 AM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.3.2
 
 
WEBMASTER FORUMS 101
ARCHIVE
CONTACT US
TOP
   
© Webmaster Forums 101 2005. All Rights Reserved.
Design by: vBCore