473,695 Members | 2,460 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I want to redirent from a php page to html page

8 New Member
Sir

I am using a form in HTML (action=mail.ph p), when the user hits the submit button, he goes to mail.hp where i process the form input fields and then i want to redirect to aa page like Thanks.html.

I used Header , redirect etc but i am getting erros. So anybody can help.

Thanks
Apr 13 '11 #1
5 1488
code green
1,726 Recognized Expert Top Contributor
In mail.php you could
Expand|Select|Wrap|Line Numbers
  1. include 'Thanks.html';
Apr 13 '11 #2
johny10151981
1,059 Top Contributor
What is the spteps you follow?

lets give you a hint...
1. Process the email.. //and ofcourse no data has been echoed or printed
2. redirect to thanks.html by function "header('Locati on:Thanks.html' )"
3. end of program

or what?
Apr 13 '11 #3
Sajad Bhat
8 New Member
Sir

I am using a form in HTML (action=mail.ph p), when the user hits the submit button, he goes to mail.hp where i process the form input fields and validation too (may echo something), then i want to redirect to a page like Thanks.html.

I used Header , redirect etc but i am getting erros. So anybody can help.

Thanks
Apr 13 '11 #4
sidhx
50 New Member
hey Sajad u cann't redirect if use echo in the same file.
show the code where u got the problem.
Apr 14 '11 #5
Bharat383
93 New Member
You could use the header function to redirect to a page at the end.
Expand|Select|Wrap|Line Numbers
  1.      <?php header("page1.html");
  2.  
Bharat Parmar(Bharat38 3)
May 1 '12 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2317
by: Jon Haakon | last post by:
Hi, I'm developing a websolution using ASP and DHTML technology that's running on a MS IIS webserver. My solution is frame based with a toolbar on top, a hidden frame for scripts in the middel (all actions run here), and on bottom html pages will be shown. The bottom page contains forms witch is developed with a 3ed party design tool from Acrobat and stored as HTML. It wouldn't be any problem storing these files as html. But the main...
5
10070
by: Earl Teigrob | last post by:
I am creating an application where I would like to give web designers the ablity to create a static html page and dyanamically load it into my application(exactly like loading a user control into a page). Is there an easy way to do this or do I need to stream the html into my application and parse unwanted header/footer info before rendering it within the application page (as a literal control, i imagine) Has anyone done this or seen any...
2
1756
by: Alex Maghen | last post by:
I have a site where most of the pages will have a common "shell" or layout. There will be an outer table which will hold HTML elements but which will *also* hold UserControls (Global Nav, etc.). Right now, all of the HTML and the @ Register directives for the shell's UserControls are copied onto each and every .ASCX page on the site I find this kind of frustrating because it means that I have to change many files whenever I want to make...
1
1940
by: Priya | last post by:
Hi, I'm new to ASP.NET. I've some basic ques. In what situations we use aspx page when DHTML can be used? How can I interact between an aspx page & html page eg: using Request . Form i get the values from a html form but if i want to populate some values in html form based on value retreived from database , how do i do it? Thanks in advance
2
39762
by: fmakopo | last post by:
I am trying to save html page using C# because i want to save the page on the server not on the client side. I can do that using Javascript the problem that i am having i want to save the page on the server.
1
2357
by: Jai | last post by:
Hi All, As When I am displaying my html page which contains images also inside content placeholder with panel control.....it is only showing text and not the Images.....................please suggest me...how can i do this..... I want to display html page(with images) inside a panel,and that panel is in contentplaceholder(master page)...............
7
2448
by: SteveM | last post by:
I am sure this is an easy question, but being relatively new to ASP.NET programming, I can not quite grasp what I need to accomplish what I need to do. What I have is a word document that is rendered as a page (or actualy a part of a page) that is editiable. To do this I let the user download the document, edit it and then upload it back to the site. Then at Page_Open, I convert the .doc file to an html and render it back to the page......
0
898
by: Etantonio | last post by:
Good morning, I have a static html page where I want to load image that day to day are in a different path, to achieve this I would want that the link point to a c# page where I create dinamically the new url, but how I can arrange a c# page that give back an image and not an html page ? I tried with the following code but the resulting page is empty
17
2528
by: =?Utf-8?B?Y2F0aGFyaW51cyB2YW4gZGVyIHdlcmY=?= | last post by:
Hello, I have build a website with approximately 30 html-pages. When I search this website in Google, I see the index.html or home.html on this website, but also other html-pages on this website. When I click in Google on one of these pages (not index.html or home.html), I am only linked to that one html-page and not to the website itself. Does anyone know how to fix this. Is there for example a metatag? Thanks
13
2444
by: maddiashok | last post by:
Hi, How to redirect the Html page in spcicific location, while clicking hyperlink or link button. Please help me i am fresher for Asp.net. its urgent Thank you....
0
8649
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8864
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7684
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6507
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5842
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4594
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3025
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2289
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1986
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.