Form Variables
I need to do something very basic. I need to gather information from a form, and when they click "submit", it will take their input and add it to a URL string.
In other words:
Name:
Company:
Click Submit
Goes to http://www.yadayada.com/tom.asp?name=XXXXX;company=XXXXX
How can I do this simple task
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
How To Access Variables (form Text Box Values) On Same Form?
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:
Variables From A Form
I have a form with 2 text boxes, when submitted the content is written to a database. Basically it's a page builder, one text box has the name of the page, the other contains the text.I have built a preview page which I want to pass whatever has been typed into the text boxes to, before the form is submitted. Basically what I want to do is pass them as variables to the preview.asp page. Anybody know how I can do this? The text box names are 'title' and 'text' E
Not Getting Form Variables
It appears that form that I have used for months has stopped passing form variables (via POST) to my asp results page. I have been working through various problems, all caused by the installation of Microsoft XP SP2. I am assuming that this is yet another security issue, but don't know what I should set to overcome this problem.
Redirect And Form Variables
I need help on how to do the following: 1. Submit a form from a.asp to b.asp (arbitrary names) 2. Have b.asp redirect to either c.asp or c2.asp which is decided by a form field gotten from Request.Form("Field") 3. Have all the previous form data available in c.asp What I need to know how to do is declare the variables from the form on a.asp on b.asp so I can view them on c.asp.
Posting Form Variables
I have created a form, which has hidden fields, which are to be passed to a payment gateway using the POST method. My problem is that the variables in the hidden fields do not get passed on to the payment page when the form gets posted. The payment page comes up empty. Does anyone know why this is happening? Code:
Combining 2 Variables In A ASP Form
It's regarding an ASP FORM for the credit card process: I'm collecting credit card information on my secured server. When collecting the Month and Year values (for the expiration date of the card) with Select/Option tags, I don't have a way to concatenate them together prior to submitting the form so I can post them in the format the gateway asked me for (e.g. "mmyy" or "mmyyyy") Do you have a way where I can submitt those variables togehter in such format? Code:
Passing Form Variables
I'm interested in knowing how to pass the form variables from page 2 to page 3 Page 1 Gathers info via a form from a person. Page 2 Uses form variables from page 1 to decide what to do next, it then must pass some of the form variables from page 1 to page 3... Page 3 Uses different Form variables from page 1 which it has been passed by page 2
Validate Form Variables
I have a form that imputs several variables. Some of these variables are varchar some are smalldate and some are numbers. What is the recommended method of handeling input that does not fit the required variable type? I am thinking of doing some kind of check and if it is not the required field type just dropping that value (for instance if they type "aaaaa" into a date field I would just turn that variable into ""). I have done a search and came up with many great methods of doing this, but what is the best way? I would like to avoid large Java routines (actually I would like to avoid java all together.
Probelm With Form Variables
search.asp uses a form to pass two variables ysColu (column name) and ysText (the text being searched for) to result.asp, result.asp then displayes a list based on the two variables. This all works fine, however whenever the "Next" button is used to page through the recordset the variables reset to their default values. I was wondering is there any way to fix this? Code:
Request Form Variables
i having problems with calling variables which are sent via a form using the 'post' method. I'm actually using a Flash form to pass the variables. The problem i'm having is reading those variables in the ASP.NET query. I'm using C#. Here is the code i'm using: Code:
Empty Form Variables
For some reason i keep getting empty values in my form variables, if anyone can spot a reason why then please tell me what I'm doing wrong. Code:
Passing Form Variables Using Frames
Using DW 8 with 3 frames. I want click on whatever in top frame that uses Go To URL which displays results in bottom frame. My problem is that the results in the bottom frame actually runs a recordset (SQL query) that pulls variables from various form elements in the middle frame. The middle frame never submits the form variables to the server. It only serves as a resource for the getting variables used in the SQL statement. How do I go about addressing variables in the SQL statement ?
Flushing Form Variables On Submit
I need to flush the form variables after submit. The problem is that the form variables retain their values on page refresh. I added the following at the top of the asp code, <%@ LANGUAGE=JAVASCRIPT%> <% Response.Expires = -1 Response.ExpiresAbsolute = "Jan 1, 1980 " Response.AddHeader ("pragma","no-cache") Response.AddHeader ("cache-control","private") Response.CacheControl = "No-Store" %> But it doesn't seem to work! Any suggestions??
Passing Variables To PayPal Form
I have an asp page which allows the user to scroll through images one at a time created using DW server behaviours, record set and repeat region etc. What I would like to do is have a PayPal button on the page that can pick up from the recordset necessary fields for ordering such as item cost and description. The part of the code referring to the recordset is below: Code:
Passing Form Variables And Loosing Data
I am trying to pass some data through a form to a mailing script. The form entry is ... <input name="width1" type="hidden" value=<% = rsMoreDetails("width1")%>> and is picked up in the mailing.asp as width1=Request.Form("width1") and the mailing script uses... body_text = body_text & "Option 2 - "& width1 & vbcrlf The problem is that when the mail is sent and the value is say "14 inches" I seem to loose everything after the first space so it only sends "14" Am I doing something wrong or this the way it is and if so is there a work around please?
Open New Window BUT With Session Variables From Previous Form
My page shows details of a work request. It has a number of buttons: one to go to a search page, another to make a copy of that page, and so on. What I want the user to be able to do is, click the 'Copy' button and have the details from that page passed to ANOTHER page, ready to submit a new request. Basically, it's just a quick way for users to submit new requests, using a previous one as a sort of template. This all works using a client-side function in the details page, which simply calls the submitting page using document.submit. However, this uses the same browser window, overwriting the "old" page. I want a new window to open and have it read the session variables created by the details page. I've tried 'meta http-equiv='refresh' content=1...' and, while that opens a new window, it doesn't read the session variables. Similarly, the gazillion JS scripts I found on the web do pretty much the same thing.
Syntax On Passing Variables From Email Form To Insert A Database...
I'm having a problem with passing variables inserting to my database. Here's what I'm doing. I have a page where the user selects a team member (this is fine) Once the team member is selected I have the variables on the form send and email to all supervisors and the member selected (this is fine also) BUT, I'm having problems inserting the emailed information to my access 2000 database after is email. Can someone guide me in the right direction.
Posting Form Variables From Site A To Site B
I have to pass form data from my site to another organizations site using POST method... how exactly do I do that? Im familiar with how to do it within a single site/domain, and cant use querystring... I dont know where to begin.
Referencing Variables Through Other Variables
I'm not sure how to best describe my problem, so a simple example should help explain things: I have two arrays, called set1_data and set2_data if I create a variable like so: firstPart = "set1" and then assign like this: copyOfArray = firstPart & "_data" how do I make copyOfArray reference the set1_array, as opposed to just a string "set1_array" which is what it's doing? I've had a good rummage round ye olde Internet but couldn't find anything there must be a keyword or function to achieve this?!?
How To Retrieve Form Values, When Form Elements' Names Are (almost) Unknown?
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:
File Form Type And Request.Form Problem
I have a form as follows: <form action="dropboxsubmit.asp" method="post" enctype="multipart/form-data"> <input type="file" name="FILE1" size="30"> <input type="text" name="def" value="0" size="10"> etc..... and can't get my asp to recognize data in other form input boxes using Request.Form Any thoughts?
Javascript Form Validation - Form Action To Another Page
In my prototype asp page (with no javascript and no password validation, I have a registration form with the following action: <form name="form" method="post" action="RegDetails.asp"> This works fine, the form details are collected by RegDetails.asp I am attempting to include javascript server side validation for the pasword, which obviously requires password and password2 fields (to be verified). I have used the script available at: http://javascript.internet.com/forms/val-pass.html It works fine in a new blank page with the form action: <form name=myForm onSubmit="return validatePwd()"> The final stage in this javascript demo form displays an alert box: else { alert('Nice job.'); return true; When I change the first line of my original form to: <form name=myForm onSubmit="return validatePwd()"> how do I get my original action of - action="RegDetails.asp" instead of this alert box?
Merging Upload Form And Email Form
Im having problems with my form, separately both forms work perfectly, but having problem sending the email once submitted, however the upload fuction is working fine. The message im getting is, Request object error 'ASP 0207 : 80004005' Cannot use Request.Form /forminfo.asp, line 42 Cannot use Request.Form collection after calling BinaryRead. Heres the script Code:
ASP Repeating Form Fields In An Email Form
Would anyone be able to give some guideance in ASP code as to how I would repeat a section of input fields in a form based upon the number of guests that are attending an event? Basically, what needs to happen is if 3 guests are attending, I need the Name, address, city, state fields to repeat so they can be filled in with information. Then all of the information from the whole form is submitted which returns an email to the administrator of the event.
Sending Email With Values Form A Form
<%@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....
Submit Form Data And Refresh Form
I have a series a forms that submit data to different tables in a database. As it stands, when a user completes FORM 1 and clicks the SUBMIT button, the FORM 1 data is submitted (action = form2.asp, method = post) to ASP code at the top of FORM 2 (request.form("form1 field name") etc...), and submitted to the database with SQL code, also at the top of FORM 2(INSERT into...). Hence the submit button on FORM 1 directs the user to FORM 2, and submits the data which is exaclty what I wanted. However, I now need the users to submit multiple sets of data with FORM 1, and direct them to FORM 2 once they have finished using FORM 1. Most importantly, I need to pass a few parameters from FORM 1 to FORM 2, and have these parameters submitted to the database. My main problem is getting a fresh form1 after submiting the same form1, in preparation for anoter set of data using the same form. Basically, the database has 'one to many' relationship tables. Form1 and form2 are both populating the 'many' tables, so that each form needs to be filled-in several times while retaining the key field of the 'one' table. At the moment submiting form1 takes me to form2. Is is possible to submit the data to the database, get form1 back again to submit more data, as many times as required, then click another button to load form2 when the user is finished with form1? Can anyone please give me some pointers? or at least explain the concept of what I need to do. I am a novice and it's taking me a while to get to this stage. Any help will be greatly appreciated. Is it possible to post FORM1 to itself and insert the data (i.e. place the request.form at the top of FORM 1) If so, how do I direct users to FORM 2 while retaining my parameters?
Loop Form - Extract Display 'value' As Well As Form Value?
While I can extract the option value from the following: <Select name='Keystring' MULTIPLE> <option value='1' name='status'>Pending</option> ..... </select> I cannot seem to extract the corresponding 'display' value when I do a For...Next Loop: for each keystring in Request.Form("Keystring") keystring=request("keystring") Next How do I aslo get hold of that 'display' value eg 'Pending'...is it possible?
Request.Form Doesn't Return Form Data
I have some ASP server-side code that works perfectly when the client is running on Windows (IE, Netscape, Firefox, etc.) but doesn't work at all when the client is running on Macintosh (IE, Omniweb, Safari, etc.) This is the client-side Javascript code:
Form And The Form Validation In The Same Page
I have a simple form to accept two form fields and display the values entered on pressing the submit button. The following is the form I have created to accept the two entries and display the form fields on pressing the submit form. It does not work can somebody please correct the code or provide a simple equivalent code where I can have the form and the validation and usage of the form values in the same ASP page. Code:
Form To Form Data Transfer
I am a new programmer seeking a right way for transferring data between forum to forum, as i am creating a site wich have a page keeping 20's of server controls like drop down list and text boxes the value of ddl2 changging on change of ddl1 and displaying its corresponding value in text box and i have 10 rows in this way and i wanna display all selected values of server controls in next page as report.
Form Field Form Submit
I have a form that has approximately 7 text fields and 1 checkbox. Generally when this form is submitted(to itself BTW) it works fine, however, when the checkbox is only field that has been modified/clicked the form doesn't always submit. When it does work, a Stored procedure is passed form variables and updates to the db are made. When it doesn't, its as if the form wasn't submitted, it reloads and resets the page, but the stored procedure isn't triggered.
Passing Info From Form To Form
I have an html form where a serial # is entered and goes to an asp page to determine wether it is a res or comm number, then directs to another form where they can finish entering info to register the serial number. I want the second form to display the serial # entered in the first form. How do I do that??
Passing Form Data Within A Form
I am trying to create a form where the user can check a box within a form and the address will fill in automatically from a previous address in the form, without submitting the form.
Converting Access Form To A Asp Form
I have an Access application which need to be converted to asp-sql server application. This Access application uses a single form. This form has got a SS number with names and age. The form has two subforms. One of the subform uses a physical test score which is basically four different fields while the other subform is one that has a written test score with three fields. Entry to both physical and written scores are done through this form. Both the forms can have multiple entries to make sure we are tracking historical scores. The relationship between the ssn table and the physical test score table is 1: n while that between ssn table and the written score table is 1: n. With this scenario what is the best way to design form in asp pages?
Variables In ASP
I am trying to build a web based database using Access and ASP. I can retreive data form the database in a web page. I can send data from one page to another. However, I am stuck trying to figure out how to make the data variable. I would like the second page to display only data the user selected from a drop down list in the previous web page. I tried using the WHERE function and replace the hard coded information with a variable, but it isn't accepting the code. Could someone please help with this? I have research mulitple sites and can't find this particular piece of code or in tutorials. I must be missing something because seems like it would be basic stuff.
Variables
I'm trying to reference a username variable that is saved after the user logs in. I can reference it using $(Username) in standard html parts of the page but how do i use it in the script sections enclosed with <% %>
Variables
How can I get the value of a variable set in ASP from inside vbscript tags. Here an exampleCode: <% Dim x x = "something" %> <script language=vbscript> msgbox(x) </script> I need to display the variable in a msgbox but can within ASP.
Asp Variables
on the page.asp it searches the database for the specific record with id=3. now i cant use : variable = Request.Form("id"), because the information does not come from a form, and request.querystring doesn't want to work either.
Variables
I am new to asp and have tried a few things and cannot get it to work. I thought this code: <input type="hidden" name="x_cust_id" value="<%= x_email %>"> would work for making the x_cust_id value equal what was put in the x_email field - but that doesnt work - any idea what Im doing wrong.
Variables
I have a webpage with a list of items with checkboxes and a submit button. On the click of the submit button, I call a vbscript that loops through the items and put the values of the checked items in an array or string, and then jump to a new page. Now I either want to send this variable to the new page, or I want to save the values to a mySQL database table, so I can use the values on the new page. It seems I can't use session variables (session.contents) for this because that's server-side only.
|