Quantcast
Channel: Satollo » All Posts
Viewing all articles
Browse latest Browse all 2460

Reply To: question about config forms

$
0
0

Not sure if THIS is helpful. I wanted to add first and last names to the NEWSLETTER sign up form on the site. So this worked for me. on the newsletter file subscription.php line 1341, began my changes.

First I commented out the original code in case I broke the form:

/* $buffer .= “<tr>\n\t” . ‘<th>’ . $options_profile['email'] . ‘</th>’ . “\n\t” . ‘<td align=”left”><input class=”newsletter-email” type=”email” name=”ne” size=”30″ required></td>’ . “\n” . ‘</tr>’ . “\n\n”; */

THEN I ADDED THIS IN PLACE (and it works fine!) If there is a better way to do this please let me know. Thanks.

$buffer .= “<tr>\n\t” . ‘<th> <br />’ . $options_profile['name'] . ‘</th>’ . “\n\t” . ‘<td align=”left”>Please complete all fields. Thank you! <br /><input class=”newsletter-firstname” type=”email” name=”nn” size=”30″ required></td>’ . “\n” . ‘</tr>’ . “\n\n”;

$buffer .= “<tr>\n\t” . ‘<th>’ . $options_profile['surname'] . ‘</th>’ . “\n\t” . ‘<td align=”left”><input class=”newsletter-lastname” type=”email” name=”ns” size=”30″ required></td>’ . “\n” . ‘</tr>’ . “\n\n”;

$buffer .= “<tr>\n\t” . ‘<th>’ . $options_profile['email'] . ‘</th>’ . “\n\t” . ‘<td align=”left”><input class=”newsletter-email” type=”email” name=”ne” size=”30″ required></td>’ . “\n” . ‘</tr>’ . “\n\n”;


Viewing all articles
Browse latest Browse all 2460

Trending Articles