WillNicholls
Suspended / Banned
- Messages
- 2,004
- Name
- Will
- Edit My Images
- No
Hi all,
I'm asking here as I can't seem to work this out anywhere else. Are there are PHP wizzes here?
I have a php file working to submit an email address to my mail chimp newsletter list when someone fills in a form and hits submit.
The form works, and it submits.
However, it just displays "got it, you're on the list" on a blank page when it succeeds.
I would like it to redirect to a new webpage URL which is the confirmation page. I think the following is the code that needs altering, but I don't know how. Thanks in advance:
if ($data->error) {
$arrResult = array ('response'=>'error','message'=>$data->error);
} else {
$arrResult = array ('Got it, you have been added to our email list.');
}
I'm asking here as I can't seem to work this out anywhere else. Are there are PHP wizzes here?
I have a php file working to submit an email address to my mail chimp newsletter list when someone fills in a form and hits submit.
The form works, and it submits.
However, it just displays "got it, you're on the list" on a blank page when it succeeds.
I would like it to redirect to a new webpage URL which is the confirmation page. I think the following is the code that needs altering, but I don't know how. Thanks in advance:
if ($data->error) {
$arrResult = array ('response'=>'error','message'=>$data->error);
} else {
$arrResult = array ('Got it, you have been added to our email list.');
}