Unstoppable Domains โ€” Get your daily AI drops report

Need help with contact form

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch

hangman21

Established Member
Impact
1
here is my code and i want to redirect my thank you page, how can i do that? thanks

<?php
// Contact subject
$subject ="$subject";
// Details
$message="$message";

// Mail of sender
$mail_from="$email";
// From
$header="from: $name <$mail_from>";

// Enter your email address
$to ='[email protected]';

$send_contact=mail($to,$subject,$message,$header);

// Check, if message sent to your email
// display message "We've recived your information"
if($send_contact){
echo "www.mywebsite.com/thankyou";
}
else {
echo "ERROR";
}
?>
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Instead of the "echo" ...
header("Location:www.mywebsite.com/thankyou");

Hopefully you're sanitizing those variables someplace earlier in the code?
 
0
•••
add this to the "additional settings" section:

on_sent_ok: "location.replace('http://www.YOURSITE.com');"
 
0
•••
CatchedCatched
Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back