Jump to content

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('webmaster@afbawindgap.org',$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('webmaster@afbawindgap.org',$subject,$text,"From: $name <$email>");

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

?>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.