473,387 Members | 1,528 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

I want to redirent from a php page to html page

Sir

I am using a form in HTML (action=mail.php), 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 1475
code green
1,726 Expert 1GB
In mail.php you could
Expand|Select|Wrap|Line Numbers
  1. include 'Thanks.html';
Apr 13 '11 #2
johny10151981
1,059 1GB
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('Location:Thanks.html')"
3. end of program

or what?
Apr 13 '11 #3
Sir

I am using a form in HTML (action=mail.php), 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
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
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(Bharat383)
May 1 '12 #6

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

Similar topics

2
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...
5
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...
2
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.)....
1
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...
2
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...
1
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...
7
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...
0
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...
17
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...
13
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.