I am trying to create a page that sends user contact information to the appropriate email address. Depending on where the user lives, say California, the results will be sent to the person assigned to California, such as "bob@mail.com (not a real email address).
Right now, I am only working with three states until I get the page up and running:
California (CA = bob@mail.com)
Texas (TX = mary@mail.com)
New York (NY = john@mail.com)
Also, I need the results sent by the form, not as an actual email. I already have this set up and working. I just need to figure out how to pass the variable. Any suggestions? Code:
I've been given the task of building a carbon offset calculator: rolleyes:
What I need to do is have a webpage on a touchscreen kiosk that allows a visitor to the client enter their name/company/email address, plus select how they travelled to the premises and their departing post code.
When they submit the form, I need it to email the details to the client so they can produce a nice little certificate saying how many trees have been planted to offset the visitors journey - but I also need it to display the details on screen before resetting itself for the next Prius driving visitor to use.
I've got to the stage where I can EITHER capture all the details needed and email them OR capture all the details needed and calculate the distance travelled, KGs of CO2 expended and how many trees are needed and display them. I'm having difficulty getting it to do both!
Last week after much searching, I found the answer to my problem in this newsgroup. I can't find the thread from which I got my solution, but I wanted to report back what worked.
When the site visitor fills out the form and submits it, this calls a rather ordinary asp script like formmail.asp that sends the emails and displays a "thank you" web page. At the very end of my "thank you" web page I placed the following:
This causes the file download to get triggered, and asks the user if they want to save the file. In limited testing this appears to work fine in both Firefox and IE.
i have some script java script which is working but i want to do it some thing else
[Code]....
This script is working for email validation also if email box is empty it says to fill it i want that for all if some one left any box in form it says fill that. i have tried many ways but failed that's why posting here. and the last function is for contactno INPUT field so one can only put number in the field. HTML CODE
In this function, I'm trying to set the value of isValid with the results of $.post:
[Code]...
Unfortunately, isValid never changes from the initial "true". I know that $.post is working correctly because #msg_code reflects the corresponding message.
This is a novice question, but I'm stumped. I have a variable with a bunch of text assigned to it. Now I want to email the value of the variable. I have a simple form that asks for their name and emails that, but how do I add the variable result?
1. First form on the page has questions with radio buttons. Each radio's value is a number so a score is assessed at the end.
2. Second form on the page is an email the admin form, which duplicates the score in one field.
Question: I would like to know how to write the form results to a text area in second form. However, I can't do this for one, and secondly, the value is a number, can I use labels? Here's the code I've 'made up' so far...
I have a form built and on the onclick event I validate all of the fields and then if the form is ok, on the submit event I run a javascript function to set a cookie and download a file from the current window.
I have a cgi script provided by my web host to send the contents of the form through email but they only show me how to use the cgi script to send email through the submit event of the form.
I'm putting together the following website, HGV/LGV Training [URL] and have an issue regarding a form submit action. Basically I've used an open-source script for the search form so can't get any support from the Author.
My problem is that I need the search results to appear in a different URL but at the moment they just appear in a new DIV on the home page. My knowledge of JS is limited and can't get my head around what the OS script is doing. I think the relevant section of the search form is as follows:
I have an appointment form with NAME, DATE, TIME, LOCATION. I want to add another set of these same field fields if I have more than one appointment to enter so all appointments are subitted on one form.
I also want the results to be in a layout other than the generic HTML or text layout used by Frontpage. Hope this is clear enough. Don't know if this is possible.
I am trying to do a simple check-all / un-check-all checkbox system. All of the solutions I have seen use "this.form.elements.length" or a variant of this.
My scripts don't work because "this.form.elements.length" always returns 0. Example:
I have a form with results and ID's for each field, I can get an alert to popup with the results, is there anyway to display this on the webpage? This is what I have so far:
Ive been trying to pass the results of this converter to a form on a seporate url - I have looked into this but cant seem to pass a "readonly" Var. have a 2nd field that would work out a percentage e.g a + VAT.
[ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
I found an article [URL] that allows a user to search Google directions from a web page. It works very well, however is it possible to have the resulting page open in a popup window?
I am having some trouble with this form .It is not returning any errors, it is simply not returning the results of the form fields.
The clear form works, the redirect works, the layout is fine, just no results. I am just beginning to learn Javascripts and I know this is a pretty basic script.[code]...
I an wanting to make a form where all of the text fields will be output in html table format to a new webpage. For example, Name, Age, Location, etc. When the user clicks submit I want to write a new html file based on the user's name (for exmaple chris.html). This seems like it would be fairly easy to do. Can anyone give me example coding to get me started?
I use php includes to display a small form on a web page.The form has only about 2 fields,and when the user hits submit I want the form to be submitted but at the same time I dont want the page to be redirected.Instead I want a small window to pop up saying thank you or whatever.To see a demonstration of what I want to do,please go to download.com ,scroll down to the bottom of the page and you'll see a poll.When you make a vote a new window pops up showing the results of the vote but you arent moved from download.com's homepage to any other page in the parent window.How can I acheive that?I'm using this code right now:
<script language="JavaScript"> function showpoll() { window.open('manage.php','manage','width=260,height=360,status=no,scrollbars=yes,resizable=no,toolbar=no'); document.forms["form1"].submit(); } </script>
<form method="post" action="manage.php" onSubmit= "showpoll();" name="form1"> When I hit the submit button on the form a new window does pop up containing manage.php but it doesnt submit the form since manage.php doesnt give the message that its supposed to give when the form is submitted.It instead asks me to input all the fields.While the parent window is redirected to manage.php and it shows the message that its supposed to show when the form has been submitted.I hope I made myself clear.