Jump to content

Hi...! Stumped with adding code...!


Rodney

Recommended Posts

.....I have sendmail.php.....

...everything works good....

 

echo("Thank you for your interest, your e-mail was sent.");

 

.....how would I add code to re-direct to a certain page after sucsessfull submission...?

 

....like...

 

...http://www.afbawindgap.org/active_member/AFBA_Active_Members.php...

 

.....Thank you for you time...

Link to comment
https://forums.phpfreaks.com/topic/86812-hi-stumped-with-adding-code/
Share on other sites

Hi

 

You could use a header re-direct like

 

header ('location:/active_member/AFBA_Active_Members.php')

 

or a meta redirect

 

<meta http-equiv="REFRESH" content="0;url=<meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com">">

 

Hope this helps

.....like this.....?

 

....I saw that on the PhP array page but

didn't try it cuz I confuse easy.... ::)

 

 

<?php

@extract($_POST);

$name = stripslashes($name);

$email = stripslashes($email);

$subject = stripslashes($subject);

$text = stripslashes($text);

mail('[email protected]',$subject,$text,"From: $name <$email>");

echo("Thank you for your interest, your e-mail was sent.");

header ('location:/active_member/AFBA_Active_Members.php')

?>

....so I can make a fancy scmantzy successful.php to point at

instead of the  OEM "your e-mail was sent"......?

 

<?php

@extract($_POST);

$name = stripslashes($name);

$email = stripslashes($email);

$subject = stripslashes($subject);

$text = stripslashes($text);

mail('[email protected]',$subject,$text,"From: $name <$email>");

header ('location:/active_member/successful.php')

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.