Redirect to thanks.html

Hi all

I created the php request submission form & redirect form to thanks.html

Problem is when I click on the feedback form, they automatically go to thanks.html. How can I fix this problem.

<? PHP

/ * = CODE WILL RUN WHEN FORM SUBMIT = * /.

if($_GET["formFilledStatus"]=="t")

{

$name = $_GET ['txtName'];

$email = $_GET ['txtEmail"];

$phone = $_GET ['Txttelephone'];

$fax = $_GET ['txtFax'];

$address = $_GET ['txtAddress"];

$city = $_GET ['txtCity"];

$zip = $_GET ['txtZip'];

$country = $_GET ['txtCountry'];

$userRequirement = $_GET ['txtSuggestion'];

                              $to= " [email protected] "; "

$subject = "FEEDBACK & REQUEST FORM;

$message = "username < BR > < B >: - < /B >". " $name. "< BR > < BR > < B > Email: - < /B >". " $email. "< BR > < BR > < B > country: - < /B >". " $country. "Requirement for user < BR > < BR > < B > / Suggestion: - < /B > < BR >". " $userRequirement. "< BR > < BR > < B > phone: - < /B >". " $phone. "Fax < BR > < BR > < B > < /B >". " $fax. "< BR > < BR > < B > address: - < /B >". " $address. "< BR > < BR > < B > City: - < /B >". " $city. "< BR > < BR > < B > Zip: - < /B >". " $zip;

$headers = "MIME-Version: 1.0\r\n";

$headers. = "content-type: text/html;" charset = iso-8859-1\r\n ";

$headers. = « de : ". $email;

Additional headers

                              //$headers .= 'Bcc: [email protected] '. "\r\n";

$mailStatus = mail ($ $subject, $message, $headers);

}

/* ========================= END CODE =====================*/

/ * Redirect the visitor to the thank-you page * /.

Header ('Location: thanks.html');

Exit();

? >

You use GET as your form method then change below to $_GET (as shown) and see what happens then.

If (array_key_exists ('submit', $_GET)) {}

Tags: Dreamweaver

Similar Questions

  • How to redirect a page html on submit

    I have this form and I wish that when people click on the btn to submit, to be redirected to a html landing page. I don't know if I need to change the php script action or both. Does anyone know how to do this?

    Thank you

    Here is the code for both

    Import flash.net.URLVariables; import flash.net.URLRequest;  / * Mouse click event by clicking on the specified symbol instance performs a function in which you can add your own custom code.  Instructions: 1. Add your custom code on a new line after the line that says "/ / Start your code custom" below. The code runs when the user clicks the symbol instance. * / submit.addEventListener (MouseEvent.CLICK, fl_MouseClickHandler);  function fl_MouseClickHandler(event:MouseEvent):void {if (eMail.text == "") {eMail.text = 'Please enter your e-mail address';}            } else {/ / Start your code custom / / create a container var allVars:URLVariables = new URLVariables();}      allVars.eMail = eMail.text;      allVars.bead = bead.selected;      allVars.jewelry = jewelry.selected;      allVars.onlineNewsletter = onlineNewsletter.selected;      allVars.sandiegoNewsletter = sandiegoNewsletter.selected;      Send the info to URL var mailAddress:URLRequest = new URLRequest ("http://www.southsunbeads.com/media/flash/form.php");      mailAddress.data = allVars;      mailAddress.method = URLRequestMethod.POST;      sendToURL (mailAddress);           Thankyou. Text = "Thank you!"      } eMail.text = "";         Bead.Selected = false;         Jewelry.Selected = false;         onlineNewsletter.selected = false;         sandiegoNewsletter.selected = false; }

    I see some, but not all, of provisions for the PHP file to indicate to the Flash is made of data processing.  Once this confirmation received is when you need to take care of closing shop questions.  If you continue the completion of the loop in your actionscript code to receive the output that the PHP generates and then offer the thanks and the release of the fields and finally ending with the redirection using navigateToURL command.

  • former site a php pages how redirect the new html pages and save ranking SEO

    I have an old site that each page has the estention of php. I recreated a new Adobe Muse site, and every page is html.

    1. from the old site has established SEO, how do I redirect these pages to the new site (pages) to maintain the status of SEO?

    2. as soon as the new site is in mode proofing catalyst for business, do I have to wait until the new Muse site is launched to the host?

    Please help, I'm not super familiar with coding so as simple as possible!

    Well, if your use not BC you use BC or Muse to do all this.

    If you have just flat files generated in Muse you put on a hosting with any CMS depends on the host, but it must now make a path setting redirects complex either at the domain level, or manually by... IF PHP server for apache etc. example configuration files

    So this isn't a matter of Muse or BC and according to hosting where goes and what it is you need to work with anyone or to your work with people to do, or ask the server and options you have available.

  • PHP: contact form is not redirect to thank you

    There must be something wrong in the script contact.php, but I can't seem to find http://www.nsmcleaning.com/contact.php should go to http://nsmcleaning.com/contact.php?status=thanks but it is not redirect. Help, please. Thank you.

    pobarron wrote:

    Yes this is what is happening. In the tut the guy he breaks down into three pages and then assembles them in a php file. He's done it before, but now after the tut it doesn't. So I must have missed something in it. I'll go on. Thank you guys. I will also report it for future reference.

    No reason why you use what seems to be a solution complex when a simple will do: (xxxxxx designated email address - I've removed to avoid spam)

    <>

    If ($_SERVER ['REQUEST_METHOD'] == 'POST') {}

    $name = trim($_POST["name"]);

    $email = trim($_POST["email"]);

    $phone = trim($_POST["phone"]);

    $message = trim($_POST["message"]);

    If ($name == "" OR $email == "" OR $message == ' ') {}

    $error ="

    Oops! Name, email and message are required.

    ";

    }

    $to = "[email protected]";

    $subject = "your comments/request for information;

    $headers = "from: $email";

    {if (! isset ($Error))}

    $email_body = "name: $name\n\n;

    $email_body. = "e-mail: $email\n\n";

    $email_body. = ' Phone: $phone\n\n ";

    $email_body. = "message: $message\n\n";

    mail ($ $subject, $email_body, $headers);

    Header ("Location: contact.php? status = thanks");

    $sent = "mail sent successfully ';

    }

    }

    ?>

    NSM cleaning | Contact

    NSM Heading

    Thanks for the email! I'll be in touch soon.

    Questions or comments? Get in touch with Nancy.

    NSM Footer

  • automatic redirection of the shape of the muse does not work

    I built a landing page:

    Home - Zamenhof Hebrew to English

    After clicking on tho form button, it assumes that redirect you to the thanks.html page.

    instead of this, something is happening.

    the server guy said to set up a .htaccess file... (straight ye...)

    any idea?

    by why same files work well here:

    Home - Zamenhof Hebrew to English

    Please

    The link does not work when we can test the form, the last works as you mentioned.

    Please give the link to the page where the form is not redirect, it may be a redirection problem.

    Thank you

    Sanjit

  • redirect with dreamweaverCS6 menus

    Good evening

    Pour into a page with 3 images, snap-ins in the left menus in redirection frame reach html pages in the main frame.

    With Dreamweaver CS6 it doesn't work anymore, I am forced to change my page with the CS5 version to make it work.

    Did anyone have this problem, what do I do pour solve it?

    Thank you for your answers

    Executives are dead. They are deprecated even according to the W3C and is considered bad practice. This is why they are not supported in current versions of web design tools, even if people use them still all the time.

    Mylenium

  • for older browsers need redirection script

    Hello world

    I'm working on a site with several pages. Because it contains several pages, and I need the navigation to work, I need one solution other than the image of the poster for low level for older browsers.

    An image of the poster for low-level, wouldn't let me set up the links on different buttons. Fore example "home.html", "location.html", "contact.html".

    what I plan to do is to take a screenshot of the 3 pages & put up the navigation links in dreamweaver.

    I need a script to redirect to in the compositionReady of my scene to redirect to dreamweaver html files.

    I would like the script to redirect to:

    • internet explorer 8 and lower

    • 11 Firefox for windows and lower

    Please let me know the redirection script that I use for this (and if it goes in compositionReady)

    Thank you all very much!

    -sharon

    Hello world

    I found an old post by elaine & figured out the code that passes between the end of statements.  I tested it and it works in IE8 & below!

         <-- this="" is="" your="" edge="">

  • Form to redirect to another Page with SSL

    I redirect a form submit button to another page on an SSL site, but redirected page becomes secure.

    Here's what I now < input type = "hidden" name = "redirect" value = "RPB_payments.html" / > "

    Worse still, when I use the full URL (https://payments.eventlightingonline.com/RPB_payments.html) result with "not found".

    In other words, when a visitor clicks on the button submit on this page https://payments.eventlightingonline.com/RPB_bookings.html he should go to this page https://payments.eventlightingonline.com/RPB_payments.html and remain secure.

    Any suggestions?

    Thank you!

    GDform.php is not sufficient for your needs.   GD has a webformmailer.php who seems to have more features.

    http://support.GoDaddy.com/help/article/510/using-PHP-form-mailers

    That said, you can get much better security & protection anti-spam if you use another PHP script like this master DB.

    FormM@ailer PHP Master DB

    http://dbmasters.NET/index.php?ID=4

    Nancy O.

  • On a w form Validation, how to redirect to a custom page

    Hello. I created a form in Dreamweaver CS5 that uses validating spry successfully. Once the form is submitted, the user is redirected to the home page. But I don't want this redirect.

    My question is, how can I have validated page redirect to a custom thank you page I designed? I do not know the code syntax / exact to write to do what I want and, even if I had the code, I don't know exactly where it should be placed. Please help if you can. Here is the source code. (Redirect) BTW, when I use Dreamweaver behaviors to add a URL, it ignores the required validation and allows you simply click the button submit and redirect.) Thank you very much!

    <! DOCTYPE HTML >

    < html >

    < head >

    < meta charset = "UTF-8" >

    "" < link href = "... / _css/main.css ' rel ="stylesheet"media ="screen, projection">

    "" < link href = "... / forms.css/_css" rel = "stylesheet" media = "screen, projection" >

    < title > < / title >

    <!-[if lt IE 9] >

    " < script src =" http://ie7-js.googlecode.com/svn/version/2.1 (beta4) / IE9.js "> < / script > <! [endif]-->

    "" < script src = "... / SpryAssets/SpryValidationTextField.js" type = "text/javascript" > < / script >

    "" < link href = "... / SpryAssets/SpryValidationTextField.css" rel = "stylesheet" type = "text/css" >

    < script type = "text/javascript" >

    <!-* I think that the line of code for redirection is here? ... I don't know how to write code to redirect to the page I want to *->

    function MM_goToURL() {//v3.0

    var i, args is MM_goToURL.arguments; document. MM_returnValue = false;

    for (i = 0; i <(args.length-1); I += 2) eval(args[i]+".location='"+args[i+1]+"'");

    }

    < /script >

    < / head >

    < body >

    < header id = "pageHeader" >

    "< a href ="... / index.htm "" > < img src = ""... / _images/logo.gif "width ="170"height ="91"alt ="Logo of HMN"id ="logo"> < /a >"

    "" < img src = "... / _images/tagline.png" width = "296" height = "92" alt = "Slogan HMN' id 'slogan' = >

    < / header >

    < nav id = 'mainNav' >

    < ul >

    "< li > < a href ="... / index.htm "> home < /a > < /li >"

    "< li > < a href ="... / press.htm "> news < /a > < /li >"

    "< li > < a href ="... / about.htm "> on < /a > < /li >"

    "< li > < a href ="... / contact.htm "> Contact < /a > < /li >"

    < /ul >

    < / nav >

    < br class = 'clear' >

    < div class = "headerContact" >

    < / div >

    < section >

    <!-the webformmailer.php file is located on the web at godaddy.com where server issues->

    < section id = "Request" >

    < id p = "intro" > ask your link to download < span id = "highlight" > </span > media Kit, please provide the following information: < /p >

    "< name of the form = 'Request' method ="post"action ="... /... / webformmailer.php "> < id p ="formCaption"> the fields marked with * are required." < /p >

    < p > < span id = "sprytextfield1" >

    < label for = "FirstName" > name: * < / label >

    < input type = "text" name = "FirstName" id = "name" >

    < span class = "textfieldRequiredMsg" > (required) </span > < / span > < / p >

    < p > < span id = "sprytextfield2" >

    < label for 'name' = > name: * < / label >

    < input type = "text" name = "name" id = "name" >

    < span class = "textfieldRequiredMsg" > (required) </span > < / span > < / p >

    < p > < span id = "sprytextfield3" >

    < label for 'society' = > company: * < / label >

    < input type = "text" name = "company" id = "company" >

    < span class = "textfieldRequiredMsg" > (required) </span > < / span > < / p >

    < p >

    < label for = "address" > address: < / label >

    < input type = "text" name = "address" id = "address" >

    < /p >

    < p >

    < label for = "address_2" > address 2: < / label >

    < input type = "text" name = "address_2" id = "address_2" >

    < /p >

    < p >

    City of < label for 'city' = >: < / label >

    < input type = "text" name = "City" id = 'city' >

    < /p >

    < p >

    State of < label for 'State' = >: < / label >

    < input type = "text" name = 'State' id 'State' = >

    < /p >

    < p >

    < label for "zip" = > Zip: < / label >

    < input type = "text" name = "zip" id = "zip" >

    < /p >

    < p > < span id = "sprytextfield4" >

    < label for = "email" > Email: * < / label >

    < input type = "text" name = "email" id = "email" >

    < span class = "textfieldRequiredMsg" > (required) </span > < span class = "textfieldInvalidFormatMsg" > Invalid format. </span > < / span > < / p >

    < p >

    < input name = "submit" type = "image" id = "submit" onClick = "MM_goToURL ('parent', 'media_kit_download.htm'); return document. MM_returnValue"src ="... / _images/btn_submit.png ">"

    < /p >

    < p > < / p >

    < / make >

    < p >

    < /p >

    < / div >

    < / div >

    < / section >

    < / item >

    < script type = "text/javascript" >

    var sprytextfield1 = new Spry.Widget.ValidationTextField ("sprytextfield1", "none", {validateOn:["blur"]});})

    var sprytextfield2 = new Spry.Widget.ValidationTextField ("sprytextfield2", "none", {validateOn:["blur"]});})

    var sprytextfield3 = new Spry.Widget.ValidationTextField ("sprytextfield3", "none", {validateOn:["blur"]});})

    var sprytextfield4 = new Spry.Widget.ValidationTextField ("sprytextfield4", "email", {validateOn:["blur"]});})

    < /script >

    < / body >

    < / html >

    You can try to change this:

    If ($landing_page! = "") {}

    Header ("Location: http://". $_SERVER ["HTTP_HOST"].) "" / $landing_page ");"

    }

    else {}

    Header ("Location: http://". $_SERVER ["HTTP_HOST"].) " /");

    }

    to: (thankyou.html is a custom page, you can configure)

    If ($landing_page! = "") {}

    Header ("Location: http://". $_SERVER ["HTTP_HOST"].) "" / $landing_page ");"

    }

    else {}

    Header ("Location: http://www.yourDomain.com/thankyou.html");

    }

    OR try the reverse, if the above does not work. I don't know what the variable $landing_page is referring to:

    If ($landing_page! = "") {}

    Header ("Location: http://www.yourDomain.com/thankyou.html");

    }

    else {}

    Header ("Location: http://". $_SERVER ["HTTP_HOST"].) " /");

    }

  • Redirect to the new URL in the same window?

    Hi all - I have a SWF embedded in an HTML file. After the film has finished playing, I want a new URL to load. I currently have the following code in the final keyframe of my layer actions:

    navigateToURL (new URLRequest (http://www.someurl.com));

    .. which works, but the problem is that it opens a new window for the new URL instead of redirect in the same window, which is what I prefer. Y at - it a different command that I can use to force the new link to open it in the same window?

    I guess I could use a Javascript redirect to breast HTML of the web page, but it seems safer for me to use Actionscript within the Flash animation. Anyway - thank you very much in advance for any help.

    It is roughly the same as what you would do with html...

    navigateToURL (new URLRequest ("http://www.someurl.com"), '_self');

  • redirect the user based on the level of access

    Using the server behavior of Log In User I want to redirect users to different pages according to their level of access.  For example, users of access level X would be redirected to x.html while users access level there would be redirected to y.html and so on.  No idea how can I adapt the code generated by the Log In User server behavior to give this capability to my login page?  I use php/mysql.

    Thank you

    Reiger

    With Dreamweaver Log In User server behavior, you send users to a single page if they connect successfully. Set this page to accept the two levels of user access.

    Inside the page, use a conditional statement to redirect users to the relevant pages. Access level is stored in a session variable called $_SESSION ['MM_UserGroup'].

    if ($_SESSION['MM_UserGroup'] == 'x') {
      header('Location: http://www.example.com/x.php');
      exit;
    } elseif ($_SESSION['MM_UserGroup'] == 'y') {
      header('Location: http://www.example.com/y.php');
      exit;
    }
    
  • Google indexes the incorrect file type: html vs php

    Hello

    This weekend I was helped a lot with a problem, I got on php: http://forums.adobe.com/thread/420710?tstart=0

    However, I had downloaded the site a week before and now Google index the old pages with extension html (http://mysafety.be)

    I have included "not to archive ' and 'no index' metatags, but the amount indexed with html continues to climb and no pages with php extension are being indexed.

    This means that I have to keep alive all the html page with no - archive metatag and redirection to the version of php.

    Suggestions, please?

    Thank you

    Erik

    You can place a file named ".htaccess" in the root of any folder, and the server will use the directives in the file to control how it serves pages for the client.  There is a full set of controls, more can be found by Googling "htaccess", probably you do not want to read, but among them is the possibility to do a server for any extraction of page redirection, allowing you to automatically redirect all requests for *.html to *.php.  Which is nice, is that you can send a header with the redirect than direts search engines to adjust their indexes, called a "301" header.  It specifies that the requested page has moved permanently to the new name of the page.

    On several of my sites, I have this redirect used - the .htaccess file contains the markup like this.

    RedirectEngine on

    Redirect 301 xyzzy.html http://www.example.com/xyzzy.php

    Try Google...

  • Call an HTML page directly from the page of the OFA.

    Hello
    I have a customer requirement to call an HTML page directly from my page of the OFA. The HTML page is the home page of their business and in my OAF page whenever the Cancel button will be squeezed user will be redirected to the HTML home page.
    Is someone can you please tell me how I can get this feature.

    Thank you
    Lucile

    R11 I have pageContext.sendRedirect (url) of the user; to achieve this.

    Kind regards
    Out Sharma

  • Can I use 'Check the redirection' in Firefox 7?

    Use Firefox 3.6.2. The extension 'Verify redirect' it is very important for me, but it is not compatible with other more recent versions of Firefox as being 4. Can it work in Firefox version seven?

    No, it's only for 3.5 to 3.6 version, look in the version information:

    https://addons.Mozilla.org/en-us/Firefox/addon/verify-redirect/

    Thank you

    Please check 'Resolved' the answer really solve the problem, to help others with a similar problem.

  • How to redirect a page

    I want to redirect my / index.html to/home

    The page "/ home" is another not integrated Muse, so I would need to include the full web address.

    Is there a way to redirect to Muse?

    This has nothing to do with the muse or HTML. You must configure your web server as a result. Learn about .htaccess files and 301 redirects.

    Mylenium

Maybe you are looking for

  • Firefox freeze at the start, no error message

    One minute to the next Firefox crashed. Whenever I opened it upward, it became unresponsive. Never an error message, just a pure gel. The CPU is not going into overdrive. I did a complete uninstall. Created a new profile. As soon as I closed my sessi

  • Stream 7: rotation screen problems

    After installing the drivers for the rotation of the screen but I work finally, the landscape is correct when you turn to me on the side, but when I turn the current 7 - portrait vertically is to show the opposite way round. upside down. Some would l

  • In need of a driver for printer Lexmark 810

    Original TitleL: printer not work looking for a driver for printer lexmark 810 series

  • Error 1935.An error occurred during the installation of assembly ' Microsoft.VC80.ATL,.

    I had this problem but solved by allowing a service that I had turned off - it was something to do with the update of the system components. The problem is that there are so many unnecessary services running in W8. It would be nice if I had infinite

  • Download flight microsoft

    New Microsoft Flight 1.5 GB free download game will not end.  I tried anytime of the day and night.  I got as high as 500 MB then it stopped. February 29, 2012 comes out, and I've tried since then. Can I buy a disc?  What can I do else?  Need help. A