str_replace
I have created my registration pages using the Double Opt-in Registration System.
The .php page created (blank.php) that is the content for my confirmation email sends the following in my confirmation email:
Registration group Email: bob@abcde.com
Registration group Password: password1234
Registration group Confirm: password1234
Registration group First Name: Bob
Registration group Last Name: Smith
etc.....
I would prefer that it look like this:
Email: bob@abcde.com
Password: password1234
Confirm: password1234
First Name: Bob
Last Name: Smith
etc.....
I know there is an str_replace command in there that removes the "_" that is usually between "Registration_Email", etc.. Previously Jason helped me add another str_replace to remove the "Registration group " from the mail message. But it isn't working. I think something got jumbled or it wasn't saved or ????. I'm not sure what happened. Here is the str_replace code in my page:
<?php echo(str_replace("_"," ",$pkey)); ?>:</th>
<td style="font-size: 12px; padding: 3px;">
<?php echo(str_replace("\n","<BR />",(is_array($pval)?implode(", ",$pval):$pval))); ?></td>
</tr>
I'm not exactly sure what the second str_replace is doing. But I'm sure it doesn't do what I want. Based on the first one, I suspect I want to add something similar to the following:
<?php echo(str_replace("Registration group "," ",$pkey)); ?>:</th>
<td style="font-size: 12px; padding: 3px;">
Since I'm unclear what $pkey is, I don't know if that belongs or not. Also, at the bottom of the email is the following:
Registration group 1 Fax: (234) 555-1234
Hidden Field:
Registration submit: Register
Verify Email: Verify you emaill address here.
I would like to remove:
Hidden Field:
Registration submit: Register
Is there an easy way to remove these two lines?