I have declared a Hidden field called Update in my form. I have checked before the submit that the value does actually get set, but after Submission the value of Update is empty. I have checked everywhere and this is the only place in the page that this value is set.
Does anybody have any idea why my value is being lost on submit. My form is declared :
<FORM NAME="myForm" action="AgentDetail.asp" method="post">
When I create a form with hiddenfields and then view it in an ASP web page the following shows where the hiddenfields are on the form- "> -this appears for every hiddenfield is there anyway these can be hidden from view on the web page.
how can i set the value of a hidden field at run time in my page? how can it be done in scriplets (<%%>). the second issue is that if we define a function using javascript, how can it be called at any place.
we don't want to call that function at any event but instead want to call that function every time or on validating an if condition.
I have a product ordering process that passes information between 3 asp pages using web forms.
I am attempting to set a session on form2.asp with data entered into form1.asp . This session is then displayed. I then wish to use this session value within a hidden field on form3.asp as follows
I have a form in which if i check one checkbox it makes 2 textboxes invisible. Thats working fine.( I am using java script to perform this)Now when user fill the form and hit submit and if some required field is missing than it forces the user to go back to form and complete it. While going back it retains all the values for all the fields.It also retails the checkboxs but even though the checkbox is checked now but textboxes which should be hidden are visible.
The result should be 3, not 4 (only the fields which names - or IDs - start with an 'item'). Note: I'm not satisfied with the solution of naming the fields with same name "item" and then split the array to get their values and read the ubound of array. I would like to keep the names of the fields as I stated in the example.
i wrote a script in asp/vb script that validates form fields. all works fine, apart from the fact that alerts are being shown against the empty form fields when the page loads the first time.
so, validation should not be carried out when the page loads the first time. my friend challenged me and said i can achieve this "using a hidden form field or even the submit button" and submitting the page to itself
i was more thinking of using session variables or a session cookie, but does anyone know how you could accomplish this using a hidden form field?
I am passing variables in hidden form fields and have got it working fine. However, if the variable value has a space in it then Request.Form("fieldname") only returns the first part of the variable upto the space and the remainder is lost.
I can pass such variables in the URL using URLEncode (and a URLDecode function) but this particular form is posting to the same page. Do I have to do some kind of encoding again to format the space properly and then decode it again?
Is there anyway of making the hidden fields not show in the editor?
I use alot of hidden fields and it confuses the design if there are lots shown on the page. I have written validation for this site and need to hide the hidden fields i have created. I have searched google and there is some information on this, but it is very confusing.
I'm having trouble passing hidden fields between forms. I have a total of four forms. I have the 1st form passing its field to the 2nd form, and the 2nd form passing its field to the 3rd form, but the 1st form's field then is not passed into the 3rd form. So obviously, my summary form (the 4th form) is not getting the 1st form's field or the 2nd form's field, only the 3rd form's field. Code:
I am creating a form that has 5 steps/pages. Each page contains about 20 fields. But I don't want to write them until they submit on the last page. I figured out that I can use hidden fields to carry the data from the previous forms forward. If should bascially work like this:
But the problem I am having is when I submit page 4 page 5 won't load. No error, it just won'tload. It seems to be overburdened. Is there a max on the number of fields it can pass? Is there a better way to go about doing this that someone can suggest? Or a suggestion that someone can make to fix this problem?
I am creating a form that uses a postcode lookup that opens in another window to confirm an address how would I pass back the address and populate the form?
Is it possible to do an update on a recordset like this?display all the fields in a form and let the user pick which ones to update? What happens if they pick, say, two of the total to update, and leave the rest of the form fields blank? Would that update the chosen records and leave the rest of them blank or null?
Without writing a bible on what I'm trying to do I'll see if someone can answer a quick question.
I have a form that the user writes a value in a test field. I need to put a hidden value that will take the same number the user inputs and insert it in a form.
Basically, I need ...
<input name="hdndkqty" type="hidden" id="hdndkqty" value = ??? />
the value of the hidden field to = <input name="num" type="text" id="num2" />
I have made several Access-based CMSs but now I am using SQL Server. I can read the records but my first attempts at writing are resulting in new records (with new ID) but all the fields are null.
I am posting the data from a form to the same page and an if /then statement catches the flag in the URL and runs the update script below. All the field names are correct. Code:
im trying to build a custom webBlog interface with asp language and javascript embedded htmleditor. im using htmlTextArea to permit user to edit html code onthe fly (with IE 6+)
the address to the current site is URL you can check out the admin interface by clicking on login and validating with pass***
you can try editing an existing record in the first table (you click on the [...]to open the table) Code:
But when i click on the hyperlink and is at Page2.asp. When i click the back btn on the IE, it cant bring me back to Page1.asp. It is always in a loop.
Okay there is an unique EventRegID for every registration. When people first register they get pre-registered. Then an admin comes in and confirms or wait list them (based on whatever requirements). My question is how can I tie the EventRegID to a form with multipule ID's so they can batch confirm or wait list the PreReg list? Code:
I am totally new to ASP.Till now the i have been using php, so i will try & relate my question with php.If a page is written in php & is seen by the client browser only the html code is visible to the client if he wants to see the code.But for the person who has access to the server,he can easily see the code by viewing the file in any text editor.What i want to ask is that if i write pages in ASP is it possible in any way that the people who have access to the server are unable to view the ASP code? Something like an exe file where the person cant see the code but just use the application.I want to know this cos if i want to hide my code of a web based application located in the server is it possible to do this in ASP?As far as i know this is not possible in PHP.
passing a hidden value to a querystring via a form. It is not working correctly because when I submit, it will go to calendar.asp?date= instead of calendar.asp?date=12/13/2004.
This code works because I have already tested. The value was correct.Here's the code for submitting the hidden value (this is the line of code that I need help with):
how to make an onmouseover:visible area in the page? i mean ie. i have an output page, and list of datas from database. i want buttons releated its appear when i get my cursor over area of any data. but my buttons are called from includes file.like this:Code:
I building online forms for our new client acceptance forms. The first page has 35 fields, the second page has 20, and the third has 8. My question is how is the best way to move the data from page 1 to page 2 then pages 1 and 2's data to page 3? Should I use hidden text boxes or write them to a temporary table then move them once the form is submited? Network traffic is not an issue.
when i call for a asp page i c some process still running in the status bar. but when i click on the same link again, i could not find the process. it happens alternatevely.why is this happening? how to prevent?
I am having a really strange issue. I have a few users calling in saying they are getting an error. On further review I found this line is what is causing it...
Set strLookup = cnAddStep.Execute ("SELECT * FROM ActionSteps WHERE planId = '" & intPlanId & "' ORDER BY stepId DESC")
The exact peice causing it is intPlanId. For some reason the form request isn't getting the ID.
intPlanId = Request.Form("hdnPlanId")
intPlanId is populated from a hidden text box in the previous page. But only on a very few users machines will the post not occure. Any ideas?
i hav drop down menu wif 6 titles. this is populated using the Table Grade. Now for example, im selecting Senior, which has the ID 4. how do i parse the ID thru when pple select the title? it must be hidden