Send Values From One Page Form To Another
one page displays the values which have just been retreived, and i want those values to transfer to the next page which is a booking page.. Code:
View Repliesone page displays the values which have just been retreived, and i want those values to transfer to the next page which is a booking page.. Code:
View RepliesI have a html form which allows the user to select add, delete, update or view from a drop down list. Their choice is sent to an asp page.
My problem is how to send them back a form from the asp page depending on their choice and send the resulting input to the same asp page again for processing.
So if they choose 'add' from the html page then that is sent to the asp page and they are sent back another form, to fill out the new record details which is in turn resubmitted to the same asp page to carry out the 'Insert' statement.
I received the following bit of code from a friend in need of help. I've done all I can do so far and need assistance with the rest. This code is supposed to get a web page and grab the necessary info from it so it can be used. After the page is grabbed I need to grab the values of 3 "hidden" input fields in a form.
The fields look like this:
<INPUT TYPE="HIDDEN" NAME="VARIABLE1" VALUE="CD5E56C4E89CFBE470D8B098C6897BABB6C037FD784765B0">
<INPUT TYPE="HIDDEN" NAME="VARIABLE2" VALUE="CD5E56C4E89CFBE4B1B8B011899A4B44CCC7B734481F19ED67745C61F9EF16D0">
<INPUT TYPE="HIDDEN" NAME="VARIABLE3" VALUE="D8F1A38F99B9320B">
The code I have looks like this. I need help getting started on how to search thru the retrieved web page to get the above values.
If someone knows of better code than what I have so far please feel free to enlighten me with it. Code:
I'm trying to setup something that adds/edits records to an access db using vbscript.
I've got an html form with text, select and textarea inputs.
These values get passed to an asp page that UPDATES the record (not INSERT because it's actually appending to an existing record). Because this page is also an EDIT page, I SELECT all the values so as to:
1) display the current value for editing
2) make sure if they're not edited the value is not null when submitted
My questions:
It's no problem populating the values of form "text" inputs, but how do I do the same for
a) the "select" inputs (Make the proper value SELECTED)? and
b) the textarea input?
ie. The user goes to the page for the first time and there aren't any values yet. They use the various form inputs to add values. When they come back to edit the same record I need to display current values of all form fields properly. Code:
I created a feedback form for my website that has only 2 required fields. When you submit the form it calls my asp page which puts the information in a database and then sends me n email with the information that was entered into the form. The problem is that the form only has two required fileds, and if the remaining non required fields are left empty when the asp page is called it does write to the data base, but does not send me any email. However if I go back in and put somethng in every field in the form then when I submit the form and my asp page is called it writes to the data base and sends me an email with the all the information I entered in the feedback form. Is there a way to tell my asp page that it is ok to send the email even if the non required fields are left empty? I really do not want to have to go back through the form and put default values in for each area of the form? Also is there a way to have an error displayed if the email is not sent? My asp code is below....
View Replies View Relatedhow to create an array of checkboxes that were selected from a form on one page and pass them into hidden fields in a form on the next page? I have this massive project I've been working on and am having trouble with this.
View Replies View Relatedis there a way in ASP to automatically submit a form and its values when a page loads ?
if not is there any way round this scenario. i want to have a drop down list of options depending on which is selected will depend on where the form is submitted to.
I'm using DWMX and Access DB.
i have setup a form on a normal http page which collects name address etc and is then passed to a https page to collect credit card details, on clicking submit on the https page the credit card details are inserted in db on secure server along with one field that was passed from the http page (the user id).
this all works ok, however i then need to pass the remaining orignal form values back to another http page that then inserts these values to another DB. ok you may be asking why.... the first forms allows the user to correct information already held on file before upgrading their listing, i then need them to pay for the upgrade before inserting the amended data in the orignal database... How..
if i have a vbscript function on a certain form and I assigned some values on an array variable on that function, is there a way for me to retrieve the values of that array on another asp page once i submitted the form?
View Replies View Relatedhow do i pass form values through a redirect statement to another page. I have a redirect stt. Response.Redirect "exist.asp" and i want to pass form values to be displayed from exist.asp.
View Replies View RelatedI have a form I am validating on a page. Currently I have the page call itself to check the form values for validity. I want to use the form post method to send the form values to the Update page but can't because I am using the "Response.Redirect" which doesn't post the form values to the next page.
What is a good way to validate a form values then direct it to an update page if values are valid. Should I use Client-Side or Server-side script?
i am trying harder to mix this 2 solutions... but without success... the below on seen to be grabing a template and replace the data with the values posted in a form Code:
View Replies View RelatedI have a stored procedure that requires one variable to be filled: WHERE ItemNo = @ItemNo
Instead of sending 1 value,I'd like to send a bunch of values. I don't mind changing the SP if I new how to approach this. The user would select any number of ItemNo's from a form and submit.
Assume ItemNo's like: B1, B2, B3, etc...
The end result would be something like ...
WHERE ItemNo = B1 or ItemNo = B5 or ItemNo = B10 ...etc....
I want to build a recordset based on the user's selections. How?
I want to call a recordset so you can edit the details and then obviously pass the parameters onwards into the db. However, the user guide just says this:
To process other fields in the form, use the Form collection of the upload object the same way you would use the Form collection of the Request object. For example, if your form had a text element named UserName, your processing code would include: Code:
I have a form that is dynamically generated since it is populated with values retrieved from a database. The form can of course also be submitted, which is where I run into some problems.
Since I never know in advance what the length of the form (or for that matter what the different elements' names and values) will be I don't know how to write the code in "receive.asp" to retrieve all values from the form correctly without excess use of "request.....".
I shouldn't have to write requests for every single potential element name that is stored in the DB. Please note that the form can sometimes also contain radio buttons and check boxes, even though they are not present in this short example Code:
I have a form on an ASP page that has 5 text boxes, for data entry. I am trying to get data from the text box, and pass it to a hidden text box on the form.
The hidden text box is called "MyDateTime" (a SQL date and time value). I am attempting to concatenate data from two other textboxes (one for date and one for time) to give a string like : "8/8/2004 8:00 AM" I am trying to use the following: Code:
<%@Language=VBScript %>
<%option explicit%>
<%
MESSAGE = (Request.Form("type"))
MESSAGE=MESSAGE & vbcrlf & "Name" & (Request.Form("name"))
MESSAGE=MESSAGE & vbcrlf & (Request.Form("address"))
MESSAGE=MESSAGE & vbcrlf & (Request.Form("handphone"))
MESSAGE=MESSAGE & vbcrlf & (Request.Form("phonenumber"))
MESSAGE=MESSAGE & vbcrlf & vbcrlf & (Request.Form("comments"))
MESSAGE=MESSAGE & vbcrlf & vbcrlf
MESSAGE=MESSAGE & "____________________________________________"
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From =Request.Form(email)
objMail.To = "icepricessa@hotmail.com"
objMail.Subject = "Business/Career Enquiries"
objMail.Body = ""&MESSAGE&""
objMail.Send
Set objMail = Nothing
%>
but somehow i'm not able to send the mail....
When I click submit, everything looks fine, but it doesn't seem to send an email. I'm now at a complete loss as to why it won't email and would be grateful if someone would have a look to see if they can see where I'm going wrong, here's what I have. I wonder if it's the HTML that's wrong or the ASP as I don't have any error messages: Code:
View Replies View RelatedI'm trying to retrieve the data off a form (survey.htm) and email the results
back to me using CDO and ASP (survey.asp). I'm confused as to how to
retrieve the form data from survey.htm and send it using survey.asp. Below is
a sample ASP script that I found on ASPFAQ.com and it works fine, but now how
do I grab the info from a form and incorporate it into the emal. Code:
Basically I have a page and I would like to have several forms on this page where a user can input thier email address and a short comment, then click on send and i get n email with the details.
I know how to set up a basic form but I have no idea how to send it, can anyone help me and show me what to put where to set this up on brinkster please.
Oh and I would prefer to use ASP if thats possible.
how can I send the whole form using the script below, without listing every NAME of the form. Basically I wondered if you can just put a certain code in that will send all the fields of the form without putting each NAME of the fields down indiv individualy??
My forms Name is 'conf', so I was wondering if there was a code like SENDWHOLEFORM="conf", (I know it obviously won't be that, but just to put the point across!)
<%
DIM strNAME, Mailer
strFirstName = Upload.Form("NAME")
Set JMail = Server.CreateObject("JMail.SMTPMail")
JMail.ServerAddress = "10.2.3.2"
JMail.AddRecipient "me@me.com"
JMail.Sender = "me@me.com"
JMail.Subject = "Submitted Item to sell"
JMail.Body = "Name: " & strNAME
JMail.Execute
Set JMail= Nothing
%>
i'm a begginer and need some help with editing some code.
I have a simple form which contains an email field. When a user types his email address and submits the form I want to send an email to him. How do I do that?
Any one knows how to Send an XML to ASP form FLASH, the ASP saves it into a XML on the server.
If i just could send the XML and from ASP say something like save XML....
I am having a problem writing ASP script to send email from a form. I am setting up a order form online and need to send the information from form to my email address. I copied the script I saw on an article on this site. I have copied my exact code below...what am I doing wrong.
<html>
<body>
<%
Set Mail=Server.CreateObject(“CDONTS.NewMail”)
Mail.To="MY EMAIL ADDRESS”
Mail.From="My email field"
Mail.Subject=”Just testing my script”
Mail.Body=”Hey! I am sending this email through an ASP Page and
guess what? I haven’t learnt much yet, but know that ASP is very
powerful.”
I have sometimes duplicate contents in a comments page because impatient people send the same form twice (they pressing in few seconds the Send button twice) . How can I avoid this?
View Replies View RelatedI am struggling to set up a form that would allow me to recieve an e-mail from someone submitting an e-mail address for my sites newsletter. My host does have ASP and it is enabled on my site. It says there is a problem with line 122 on the thank-you.asp page but I am not seeing it. Click here to go to the page with the form on it.
View Replies View RelatedI have created a database were you submit a job by entering the fields which is fine if it is a site visit but if it is a phone call or remote help not all the fields need to be filled in but if there not filled in it wont submit the values to the database i get data mismatch error code is below.
I either need to be able to send them blank values to the database or ideally i wont to create a option box with Phone call, Site visit and remote help which when selected takes you to the correct page which have different values in the form to fill in.
I have 2 part question: I have an html form: https://ws13.ipowerweb.com/eoscorg/pre-op_form.htm I created that has to have SSL on it. The form also includes a confirmation page to the user after the submit button is hit. However, I have been informed because I used Front Page to create the form, the SSL doesn't work with Front Page's form handler. So I want to know if I can use ASP.NET to create the form and without any conflicts with SSL? Also, I want to find out if all the form objects (form fields, text box fields) have to be coded as ASP.NET objects or can I keep the html form objects and just use ASP.NET code to send the form to an email address and to then send the confirmation page to the user? In other words do I have use ASP.NET code for the whole form?
View Replies View RelatedCan I send a form to the DB and email it at the same time? How do I do that?
View Replies View RelatedI have a very big form which should be filled up and when submitted should sent as an email exactly in the same format (html). I use CDONTS to send mail. sending mail works fine. In the Mail body I concatenate every line as given below. As the form is very big I find this way to be very troublesome when there is any " (quotes) or whenever my form need to be changed.
I want to know whether is there any simple way to send a big form in the html format to a mail id using cdonts.
I have constructed an order form and the users will enter the informtion. I
now need to send the filled out form as an e-mail (body being the HTML with
the fille din data) to a predefined e-mail address. I know how to use CDO. I
don't want to go to another page to recontruct the HTML as the '.body'
I having a problem with the CDO syntax I guess. Here's the code :
<%
response.buffer = true
message = "The following data was submitted:"
message = message & vbcrlf & vbcrlf
for each item in request.form
message = message & item & ": " & request.form(item) & vbcrlf
next
'Create message object
Dim objMessage
Set objMessage = Server.CreateObject("CDO.Message")
objMessageTo = "billy_fong@hotmail.com"
objMessageFrom = request.form("email")
objMessageSubject = "Message from the website"
objMessageBody = message
objMessageSend
set objMessage = nothing
response.redirect "confirm.asp?msg=" & Server.URLEncode("You have successfully sent your quote, thank you")
%>
The error was on the objMessageSend. What's wrong with that? Actually there was another form file which called to this asp file.
I've written many pages that emails the content of a web form, but the data
formatted very nicely. Is there a way to have the content of the submitted
form data via email in XML?