473,320 Members | 2,202 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,320 software developers and data experts.

I want to redirect from mail.php to thanks.html

i have a form in an HTMl page (Method=post action=mail.php). when the user hit the submit button he goes to mail.php where i process some input fields first and may echo a string if the user leaves an input fields blank and at the end i want to redirect to thanks.html.

Is there any way to validate the fields & email in the same file like mail.php and then redirect to thanks.html.

Thanks
Sajad Bhat
Apr 16 '11 #1
2 1926
Dormilich
8,658 Expert Mod 8TB
if mail.php didn’t create any output so far, just include thanks.html.
Apr 16 '11 #2
header('refresh: 5; URL=thanks.html'); // This redirects the page to thanks.html after 5 seconds.

Or you could use

header('location: thanks.html'); // This immediately redirects to thanks.html
Apr 18 '11 #3

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

Similar topics

3
by: tdeclercq | last post by:
HI, I want to be sure that users receive and can read my mails. How can I send mail in HTML AND text Format in one send ? thx
2
by: Stephan Bour | last post by:
Hi, I am using the MailMessage method to send an email from a form and I have the following code giving me the following error on line 79: Compiler Error Message: CS1002: ; expected Source...
1
by: C | last post by:
Hi, I currently build up a tab delimited string and send a mail using SMTP. The format is not very clean. Can I build up a string of html and send it ? The reason I am asking is that I...
1
by: Glen | last post by:
Hi, Do you know if it's possible to send an HTML E-Mail with an HTML Form (<form></form>) embedded in it?? And if so, will Outlook (a) render the form properly and (b) allow you to submit the...
5
by: Guoqi Zheng | last post by:
I think I have this kind of problem very often, now it is really making me crazy. VS.NET always want to change my html code. Ok, that is fine as long as Vs.Net can ask my confirmaton first. For...
4
by: Jim in Arizona | last post by:
Now that I've figured out how to send mail within our domain: Dim test as new System.Net.Mail.SmtpClient Dim nco as New System.Net.NetworkCredential("mailaccount","password","domain")...
13
by: Stephen Kay | last post by:
Is there a way to redirect every single page on an existing web site through a php function? In other words, say I have a whole functional HTML web site, never written to use any php. Now I...
1
by: cspecken | last post by:
Hi, I am using ASP Form Mail from Brainjar.com. I created a redirect page that is embedded in the ASP code. When the user fills in the form and submits the results the page will display a message...
3
by: ganesh22 | last post by:
Hi, in my application iam sending a mail to user bt its all running well then my problem is its not sending in HTML format i want to send a mail which format is in textbox as it is that format...
2
by: calldk | last post by:
i want to create a html editor (i dont want any third party tools to be used).. i need c# coding for this editor
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.