Problem With Redirection In A Form...

Problem: I'm using a Form and when Submitted, will display
a confirmation page. The confirmation page is simply a
Form with an OK button. I want the browser to display
either [1] the first form OR [2] to another page and I
couldn't do either. Code:

View Replies


ADVERTISEMENT

URL Redirection

I have a question on page redirection

A user login from a asp page (p1), it calls another asp page(p2) to do the validation, after successful. validation, it's forwarded to a welcom page(p3). How can I redirect back to the orginal page(p1) after certain time?

I used <meta http-equiv="refresh"; Content="3;
URL="<%=Request.ServerVariables("HTTP_REFERRER")%>">

but it seems redirect back to itself again and again.

View Replies View Related

Redirection

I need a redirection help. I have a login page, upon validation, i need to redirect the page to a welcome page on another server. How would i do that.

Iam given to believe Response.Redirect or Server.Transfer shall work only across the same web server. How do i transfer to another server ?

View Replies View Related

Redirection Question...

I have a web page (let's call it main.aspx) that must only be accessible
thru another web page in my web application. Users should not be able to
browse directly to 'main.aspx'...they can only be redirected their from
another page on my site. How does one go about doing this?

View Replies View Related

Redirection ASP Code

the code below is from a results page. When clicking onto it, you are diverted to the description.asp page. Can it be changed so that any result which listed under a "Basic" AccessLEvel is redirected to the basic-description.asp?

<a href="description.asp?<%= MM_keepNone & MM_joinChar(MM_keepNone) & "SupplierName=" & rsSearchResults.Fields.Item("SupplierName").Value %>">More Details</a>

In basic terms, "If AccessLevel is "Basic" then redirect to basic-description.asp.

Keeping in mind that it needs to pass all the values that the code above passes.

I have also included some code for a previouse project.

<%If trim(rsSearchResults("AccessLevel")) <> "Basic" Then%>
<a href="description.asp?<%= MM_keepNone & MM_joinChar(MM_keepNone) & "SupplierName=" & rsSearchResults("SupplierName") %>">More Details</a>
<% end if %>

View Replies View Related

Page Redirection

I am trying to redirect to another page by supplying a recordset data in the url...
I have tried this code but it doesnt work...

response.redirect("order.asp?OrderValue=" & myRS("orderNumber"))...

View Replies View Related

Conditioned-redirection

I need asp.net code for conditioned-redirection:
I have multiple domains pointing to one page , let's call it page0.aspx
I want to put a code in page0.aspx so

when domain1 opens page0.aspx it redirects it to page1.aspx
when domain2 opens page0.aspx it redirects it to page2.aspx
.... etc

Is there a code for that?

View Replies View Related

Redirection Question

I have a page (located at mywebsite/a.asp) that redirects to another page
(theirwebsite/b.asp) located in other server. This other page probably will
redirect to another link again (othersite/c.asp) and finally display the web
page I want the user to see (finalwebsite/d.asp)

What I want to do is, once they click the link (b.asp) located in the a.asp
webpage, to load a "please wait" type of page, like Expedia does while
looking for information; and that "please wait" page should appear until the
redirection process gets to the final page (d.asp)

Since all the pages (after a.asp) are located outside our server (and we
can't access the code in those pages), how can I do that?!? Please be as
detailed as possible or point me where I can find info about how to do this.

View Replies View Related

Browser Redirection

I have created a repository for training and reference files. The management would like to see reports regarding who is using what files. To do that I am sending the user to a page (OpenDocument.asp) with the URL in the querystring (?URL=blabla.asp). A database is then opened so the rep is logged and then they are redirected to the URL in the querystring.

The problem- When the browser redirects through a querystring it substitutes / with %5C. Once that happens the relative links we have created for the images do not appear because they are looking for the last /.

View Replies View Related

404 Page Redirection

I have a script which uses a custom 404 page to extract data from a database
and show users the correct content.

On our local development server the URL in the address bar shows as wanted:

http://www.domain.co.uk/aboutus.asp

Whereas on the remote live server the address bar shows:

http://www.domain.co.uk/error_pages...uk/about_us.asp

Why is this? Can anyone help?

View Replies View Related

Annoying Redirection

So far I have the code below (and a little bit more) to redirect a user to a different page, that works well for just going to one page, but as you can see by choice number 4 , I wish to allow the user to go to two pages, one after the other.

All of the pages that it redirects to have forms on them so the user can enter there information into it. obvoiusly I only want the user going to pages that are appropriate for them. Code:

View Replies View Related

Page Redirection

i have a website about searching products and get its information and online ordering, and for ordering products user must be registered and must give his/her ID PW to continue, the problem is that when user browse the products and then want to order this for ordering he give id pw but he redirect to his/her account page i want to redirect on the order page or page the user last left.

View Replies View Related

Get Original URL In Redirection

I have ASP page redirect from a HTML page which is password protected by IIS auth.I would like to check whether the redirection is REALLY taken from the HTML page. Since the ASP page is located at second server, would there is a chance that ASP programming such as server object can check the original URL. Or any other method.

View Replies View Related

Redirection Limit

is there any reason why i can view a page at work (which is on our server) yet when i view it online from the domain name (some pages are hosted, some are running off our server) i get the message: "Redirection limit for this URL exceeded. Unable to load the requested page. This may be caused by cookies that are blocked."

View Replies View Related

IIS Page Redirection For SSL

We have a web site running on our Windows 2003 server with IIS 6. We have installed a digital certificate for the web site and want all users to access the site using
https. Because of the diverse nature of our user base it would be difficult to advise users of the requirement to use https as opposed to http.

Is there an asp script we can use to automatically redirect all http: url requests to our https: url address. We tried an old .asp script we had from an older verison of IIS and it didn't work.

View Replies View Related

Redirection Not Working

I made a lil program to where if a certain server is down i can redirect all the traffic to another server. I can goto this secure page, type in some info and it changes this one field

My thought is that this page (below) reads where the "place" is. If the thing it calls is a "1" than it will goto this page, and any other character will goto the other pages. The problem with this is for some reason the code isnt workign below.

I think i have all the logic. When i put all this info in the page and upload it just sits there. Am i missing something. All i want this page to do is look at database, check which value is in the page, and than it will redirect the people to the appriopate page Code:

View Replies View Related

Problems With Redirection And Sql Queries...

i have been doing this asp page....but the page doesnt seem to work....it doesnt redirect as i wanted it to be...i dont get any erro message....so idont know wats wrong witht his code:

View Replies View Related

Redirection On Button Click

i want to go to another page on button click is there any method other than form submission

View Replies View Related

Radio Button Redirection

i have a search form and wanted to know if I can direct a user to another page when they click onto a radio button.Example:

I have the following two buttons. If a user clicks onto the "trade" button, it does nothing.If the user clicks onto the "wholesale" radio button, I would like it to direct the user to the "login.asp page.

<input type="radio" name="wholesale" value="wholesale">
<input type="radio" name="trade" value="trade">

Is this posible?

View Replies View Related

VBscript Response Redirection

I try to use:

qs = Server.URLEncode(Request.Querystring)
session("fromURL") = request.ServerVariables("HTTP_REFERER")&
Server.HTMLEncode(qs)
on the login page

then on the next page
I use response.redirect session("fromURL")

the following extra characters got appended at the end of the URL
"auto%3Dtrue"

Does any one know what's wrong?

View Replies View Related

IIS Redirection - Like Ht.access For Apache?

I have a bunch of old pages on my windows server that are still being occasionally visited (from bookmarks). I would like to clean up the web server and delete these pages/folders, but do not want people to get a 404.

With Apache, I would use an .htaccess redirect, but as this server is an IIS server (running asp/html pages), I'm at a loss. Code:

View Replies View Related

Redirection Based On Query Result...?

I have a quiz that writes the results to an Access db. When the user logs in, I want it to redirect them based on their score.

I want them to login and get directed to page 2. Page 2 queries the db based on the user/pass. If the quizcompleted=0, they get directed to the quiz.

If the quizcompleted=1, they get directed to a page that says "You've taken the quiz and your score was _________ ."

View Replies View Related

Request.form :: Can´t Upload But The INSERT INTO Form Works Propertly

I´m having a problem using ASP Upload with an insert form..

If I use ENCTYPE="multipart/form-data" the all the parametres i might get with request.form don´t appear.. but i can upload the files.. Besides if I take away the ENCTYPE tag, i can´t upload but the INSERT INTO form works propertly

View Replies View Related

How To Insert Image To Access Database From Form When The User Submits The Form?

my form contains two text fields(name, address) and two file field control where user can insert image(photo1 and photo2), i want to insert this data in to ms access when the user submits the form?

this is my code for insert text fields to access data base.but i have no idea about the code for image fields. In my access data base i set photo1 and photo2 as herf (binary data). Code:

View Replies View Related

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:

View Replies View Related

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?

View Replies View Related

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?

View Replies View Related

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:

View Replies View Related

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:

View Replies View Related

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:

View Replies View Related

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.

View Replies View Related

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....

View Replies View Related

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?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved