answersLogoWhite

0


Best Answer

You should write this line of code before any text is sent to the browser. Remember, even the HTML tag counts. So you can type:

<?php

if (isset($_POST['submit']))

header("location:http://www.mywebsite.com/thankyou.php");

?>

Remember that if statements and other PHP statements that don't actually send output would work, but any output sent to the browser won't. Be careful of that!

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What php command to be used to redirect visitotors to customized thank you page after submitting the form?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you redirect a displayed line used by echo command to a file in UNIX?

echo "This is my text" &gt; myfile.txt


Which Linux symbols instructs the shell to redirect the shell to redirect the output of a command to the specified file instead of the screen?

It depends on the shell interpreter you are using, but in general the I/O redirection operators are &gt;, &gt;&gt;, |.


Which command line tool displays an objects properties onscreen by default but can redirect output to a file?

DSGET


Can the redirection shell metacharacter be used to redirect between a command and a another command?

Only one of the redirection operators will do this - the vertical bar or "pipe" symbol (|). It takes the standard output of one command and uses it as input to the next command in sequence.


How do you create a tee in unix?

The 'tee' command creates one for you automatically. You would use it to simultaneously look at output from a process and redirect it to a disk file (for example).


What Windows shell script operator allows you to redirect the output of a command to a text file?

"&gt;" redirects all output to a file, overwriting any preexisting content.


Where would one use the DIR applications?

DIR applications are commands. They redirect output and input streams. They are used in programming. DIR is an operator command that can be applied in specific coding situations.


What are vertical line symbol in unix?

The vertical bar symbol - |. It is a pipe or redirect. It takes the output of one operation and pipes it to another command or program before outputting. See related link.


How do you pipe the results of dir to a file?

Assuming you are in command prompt mode, the following will redirect the output of the c:\windows to the file c:\win.txt dir c:\win\*.* &gt; c:\win.txt for %a in (C:\Windows\*) do @echo %a for %a in (C:\Windows\*) do @echo %a &gt;&gt; C:\win.txt


What is a command-line interface?

The Linux command line is a series of programming words that can be used in the Linus terminal to get results. For example, the command "cd" is used the navigate folders and directory, "cp" is used to copy.


How can print screen output in borland c plus plus?

Redirect the output to a file via the command line. Print the file. For example, if the program is named foo.exe, the output can be redirected to a file named foo.txt with the following command: foo.exe &gt; foo.txt Everything sent to std::cout by the program will now be sent to the file instead. Everything sent to std::cerr will be displayed on screen as normal.


What is the meaning of ribbon in Microsoft Word?

The ribbon in Microsoft Word is the floating combination menu and toolbar panel usually at the top of the interface. It is usually customized with command links to the most used features in the program like "Home" and "Page Layout."