Forums / All Other Contributions/Addons / custom forms - data collection

custom forms - data collection

Sticky

Views: 221,461

Results 1 to 20 of 259
14 Jul 2004, 03:54
#1
waynerd avatar

waynerd

New Zenner

Join Date:
Jun 2004
Posts:
45
Plugin Contributions:
0

custom forms - data collection

Is it at all possible to add a few links that open a set size window containing an outside page to either the information box or the "more_information" box (which used to be the tutorials) ?

I'm totally lost look at this code, and how does the window-open javascript get applied??

Any help would be great as I have two forms that I have to add to my site.

moderator: search keywords added: band_signup bionic

NOTE: A packaged version of this discussion, upgraded for Zen Cart v1.3, can be found in this post: http://www.zen-cart.com/forum/showthread.php?p=386482#post386482

14 Jul 2004, 06:18
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
174

Re: custom forms - data collection

Wayne,

are you wanting to just add links to sideboxes? It seems you've already got that working on your site.

I'm trying to understand what you're trying to accomplish.

14 Jul 2004, 06:23
#3
waynerd avatar

waynerd

New Zenner

Join Date:
Jun 2004
Posts:
45
Plugin Contributions:
0

Re: custom forms - data collection

I see this got moved to it's own post, I hope I didn't do something wrong.

I got close by trying to use a php include that brought in a .inc with the links and the javascript in it but for some reason it would only display above EVERYTHING and if I tried to move it I was getting parsing errors.

I'm not a php guru by any means so I reverted back and am still lost.

esentially I'd like one page linked from the (ex-tutorials) sidebox to open up and contain two paragraphs of text and a link per paragraph that would then open up a sized pop-up containing the sign-up forms, this way I can also implement the error and success pages to work when the formfield is submitted.

Any help by you Zencart Gurus would be greatly appreciated as this is pretty much (hopefully) the last hurdle to this site.

Cheers :)

14 Jul 2004, 06:31
#4
waynerd avatar

waynerd

New Zenner

Join Date:
Jun 2004
Posts:
45
Plugin Contributions:
0

Re: custom forms - data collection

DrByte:

Wayne,

are you wanting to just add links to sideboxes? It seems you've already got that working on your site.

I'm trying to understand what you're trying to accomplish. Doc, it's basically the fact that I need to be able to open up two forms in either a new page or a pop-up, I figured a pop-up using content that is kept in my main root folder would be easier, because of the link to the form-to-mail file and also the error and success pages, that way these can all be shown in the same window with no extra coding to accomodate the actual cart.

My problem is getting a way to open these two forms in two set windows using javascript within one of the pages that I've added to the sidebox.

Does that make better sense?

14 Jul 2004, 06:35
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
174

Re: custom forms - data collection

how complicated are these forms in terms of # of fields, layout, color/presentation, etc?

14 Jul 2004, 06:38
#6
waynerd avatar

waynerd

New Zenner

Join Date:
Jun 2004
Posts:
45
Plugin Contributions:
0

Re: custom forms - data collection

Here's the first on which is still being worked on, the other will be pretty much the same with a few different fields.

first form

14 Jul 2004, 06:43
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
174

Re: custom forms - data collection

What I'm thinking is that it could actually be done as a regular Zen Cart page.

You might want to turn off some sideboxes while it's displayed, or maybe not.

If it validates, the email is sent. If not, then it displays an error.

THe Contact Us page does that now

Of course, it'll take a bit of PHP learning, but could use contact_us as a model to start with.

14 Jul 2004, 06:44
#8
waynerd avatar

waynerd

New Zenner

Join Date:
Jun 2004
Posts:
45
Plugin Contributions:
0

Re: custom forms - data collection

Hmmm, I kind of understand what you mean but don't have a clue how to implement it. :blink:

14 Jul 2004, 06:48
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
174

Re: custom forms - data collection

waynerd:

Hmmm, I kind of understand what you mean but don't have a clue how to implement it. :blink: The contact us form consists of the following files:

includes/templates/YOURS/templates/tpl_contact_us_default.phpThis one handles the layout, including all the fields you want to collect info for. I'd take out the "SEND_TO_TEXT" one, and set the default like you do in your regular email form. Then everything from "ENTRY_NAME" down to "ENTRY_ENQUIRY" would get replaced with your form.

/modules/pages/contact_us/header_php.phpThis file checks for logic, errors, etc, and if OK, sends the message off to you, by joining all the fields together into the $message variable. It reads info from the form as $_POST['variable'] names.

/includes/languages/english/contact_us.phpThis contains the display-text variables to be put into your template.

14 Jul 2004, 06:55
#10
waynerd avatar

waynerd

New Zenner

Join Date:
Jun 2004
Posts:
45
Plugin Contributions:
0

Re: custom forms - data collection

yikes!

14 Jul 2004, 07:08
#11
waynerd avatar

waynerd

New Zenner

Join Date:
Jun 2004
Posts:
45
Plugin Contributions:
0

Re: custom forms - data collection

Okay, I've edited the tpl_contact_us_default.php and saved as tpl_contact_us2_default.php and tpl_contact_us3_default.php to accomodate the two eatra forms.

I then duplicated the other folders and files that are also required by the contact us with the same naming structure, 2 and 3.

Now, do i just open up the sidebox with the present contact us and duplicate the linking code?

14 Jul 2004, 07:17
#12
waynerd avatar

waynerd

New Zenner

Join Date:
Jun 2004
Posts:
45
Plugin Contributions:
0

Re: custom forms - data collection

I've got everything I can think of uploaded and added, added the two extra contact us filenames in the filename file and those show up correctly in the sidebox but they just refresh the mainpage when clicked, what am I missing??

:blink:

14 Jul 2004, 07:20
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
174

Re: custom forms - data collection

hang on ... trying something here... ;)

14 Jul 2004, 07:27
#14
waynerd avatar

waynerd

New Zenner

Join Date:
Jun 2004
Posts:
45
Plugin Contributions:
0

Re: custom forms - data collection

I even remembered to add and set contact2 and 3 in the english.php, but didn't make a difference.

14 Jul 2004, 07:48
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
174

Re: custom forms - data collection

/includes/extra_datafiles/band_signup.php

<?php // define the filenames used in the project   define('FILENAME_BAND_SIGNUP', 'band_signup'); ?>

14 Jul 2004, 07:49
#16
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
174

Re: custom forms - data collection

/includes/languages/english/band_signup.php> **<?php

// // +----------------------------------------------------------------------+ // |zen-cart Open Source E-commerce | // +----------------------------------------------------------------------+ // | Copyright © 2003 The zen-cart developers | // | | // | http://www.zen-cart.com/index.php | // | | // | Portions Copyright © 2003 osCommerce | // +----------------------------------------------------------------------+ // | This source file is subject to version 2.0 of the GPL license, | // | that is bundled with this package in the file LICENSE, and is | // | available through the world-wide-web at the following url: | // | http://www.zen-cart.com/license/2_0.txt. | // | If you did not receive a copy of the zen-cart license and are unable | // | to obtain it through the world-wide-web, please send a note to | // | [email protected] so we can mail you a copy immediately. | // +----------------------------------------------------------------------+ // $Id: band_signup.php,v 1.0 2004/07/14 00:00:00 DrByteZen Exp $ //

define('HEADING_TITLE', 'Band Sign-Up'); define('NAVBAR_TITLE', 'Band Sign-Up'); define('TEXT_SUCCESS', 'Your message has been successfully sent.'); define('EMAIL_SUBJECT', 'Sign-up from Bionic Banana!');

define('ENTRY_NAME', 'Full Name:'); define('ENTRY_EMAIL', 'E-Mail Address:'); define('ENTRY_ENQUIRY', 'Message:');

define('SEND_TO_ADDRESS','[email protected]'); define('SIGN_US_UP','SIGN US UP!'); ?>**

14 Jul 2004, 07:49
#17
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
174

Re: custom forms - data collection

/includes/modules/pages/band_signup/header_php.php> **<?php

// // +----------------------------------------------------------------------+ // |zen-cart Open Source E-commerce                                      | // +----------------------------------------------------------------------+ // | Copyright © 2003 The zen-cart developers                          | // |                                                                      | // | http://www.zen-cart.com/index.php                                    | // |                                                                      | // | Portions Copyright © 2003 osCommerce                              | // +----------------------------------------------------------------------+ // | This source file is subject to version 2.0 of the GPL license,      | // | that is bundled with this package in the file LICENSE, and is        | // | available through the world-wide-web at the following url:          | // | http://www.zen-cart.com/license/2_0.txt.                            | // | If you did not receive a copy of the zen-cart license and are unable | // | to obtain it through the world-wide-web, please send a note to      | // | [email protected] so we can mail you a copy immediately.          | // +----------------------------------------------------------------------+ // $Id: header_php.php,v 1.0 2004/07/14 00:00:00 DrByteZen Exp $ //   require(DIR_WS_MODULES . 'require_languages.php');

  $error = false;   if (isset($_GET['action']) && ($_GET['action'] == 'send')) {

    $band_name = zen_db_prepare_input($_POST['band_name']);     $band_genre = zen_db_prepare_input($_POST['band_genre']);     $band_country = zen_db_prepare_input($_POST['band_country']);     $band_state = zen_db_prepare_input($_POST['band_state']);     $band_city = zen_db_prepare_input($_POST['band_city']);     $contact1_firstname = zen_db_prepare_input($_POST['contact1_firstname']);     $contact1_lastname = zen_db_prepare_input($_POST['contact1_lastname']);     $contact1_phone = zen_db_prepare_input($_POST['contact1_phone']);     $contact1_email = zen_db_prepare_input($_POST['contact1_email']);     $contact2_firstname = zen_db_prepare_input($_POST['contact2_firstname']);     $contact2_lastname = zen_db_prepare_input($_POST['contact2_lastname']);     $contact2_phone = zen_db_prepare_input($_POST['contact2_phone']);     $contact2_email = zen_db_prepare_input($_POST['contact2_email']);     $payable_to = zen_db_prepare_input($_POST['payable_to']);     $mailing_address1 = zen_db_prepare_input($_POST['mailing_address1']);     $mailing_address2 = zen_db_prepare_input($_POST['mailing_address2']);     $mailing_city = zen_db_prepare_input($_POST['mailing_city']);     $mailing_state = zen_db_prepare_input($_POST['mailing_state']);     $mailing_zipcode = zen_db_prepare_input($_POST['mailing_zipcode']);     $commments = zen_db_prepare_input($_POST['comments']);

    if (!zen_validate_email($contact1_email))  {       $error = true;       $messageStack->add('band_signup', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);       }     if (!zen_not_null($band_name))  {       $error = true;       $messageStack->add('band_signup', 'Please fill in the band_name');       }     if (!zen_not_null($band_genre))  {       $error = true;       $messageStack->add('band_signup', 'Please fill in the band_genre');       }     if (!zen_not_null($band_country))  {       $error = true;       $messageStack->add('band_signup', 'Please fill in the band_country');       }     if (!zen_not_null($band_state))  {       $error = true;       $messageStack->add('band_signup', 'Please fill in the band_state');       }     if (!zen_not_null($band_city))  {       $error = true;       $messageStack->add('band_signup', 'Please fill in the band_city');       }     if (!zen_not_null($contact1_firstname))  {       $error = true;       $messageStack->add('band_signup', 'Please fill in the contact1_firstname');       }     if (!zen_not_null($contact1_lastname))  {       $error = true;       $messageStack->add('band_signup', 'Please fill in the contact1_lastname');       }     if (!zen_not_null($contact1_phone))  {       $error = true;       $messageStack->add('band_signup', 'Please fill in the contact1_phone');       }     if (!zen_not_null($contact2_firstname))  {       $error = true;       $messageStack->add('band_signup', 'Please fill in the contact2_firstname');       }     if (!zen_not_null($contact2_lastname))  {       $error = true;       $messageStack->add('band_signup', 'Please fill in the contact2_lastname');       }     if (!zen_not_null($contact2_phone))  {       $error = true;       $messageStack->add('band_signup', 'Please fill in the contact2_phone');       }     if (!zen_not_null($contact2_email))  {       $error = true;       $messageStack->add('band_signup', 'Please fill in the contact2_email');       }     if (!zen_not_null($payable_to))  {       $error = true;       $messageStack->add('band_signup', 'Please fill in the payable_to');       }     if (!zen_not_null($mailing_address1))  {       $error = true;       $messageStack->add('band_signup', 'Please fill in the mailing_address1');       }     if (!zen_not_null($mailing_city))  {       $error = true;       $messageStack->add('band_signup', 'Please fill in the mailing_city');       }     if (!zen_not_null($mailing_state))  {       $error = true;       $messageStack->add('band_signup', 'Please fill in the mailing_state');       }     if (!zen_not_null($mailing_zipcode))  {       $error = true;       $messageStack->add('band_signup', 'Please fill in the mailing_zipcode');       }     if (!isset($_POST['termsandconds']) || ($_POST['termsandconds'] != '1')) {       $error = true;       $messageStack->add_session('band_signup', 'You must accept our terms and conditions before signups can be processed.', 'error');     }

  if ($error == false) {

// grab some customer info if logged in       if($_SESSION['customer_id']) {         $check_customer = $db->Execute("select customers_id, customers_firstname, customers_lastname, customers_password, customers_email_address, customers_default_address_id from " . TABLE_CUSTOMERS . " where customers_id = '" . $customer_id . "'");         $customer_email= $check_customer->fields['customers_email_address'];         $customer_name= $check_customer->fields['customers_firstname'] . ' ' . $check_customer->fields['customers_lastname'];       } else {         $customer_email='Not logged in';         $customer_name='Not logged in';       }

//assemble the email contents:   $email_message_contents =     'band_name:' . "\t" . $band_name . "\n" .     'band_genre:' . "\t" . $band_genre . "\n" .     'band_country:' . "\t" . $band_country . "\n" .     'band_state:' . "\t" . $band_state . "\n" .     'band_city:' . "\t" . $band_city . "\n" .     'contact1_firstname:' . "\t" . $contact1_firstname . "\n" .     'contact1_lastname:' . "\t" . $contact1_lastname . "\n" .     'contact1_phone:' . "\t" . $contact1_phone . "\n" .     'contact1_email:' . "\t" . $contact1_email . "\n" .     'contact2_firstname:' . "\t" . $contact2_firstname . "\n" .     'contact2_lastname:' . "\t" . $contact2_lastname . "\n" .     'contact2_phone:' . "\t" . $contact2_phone . "\n" .     'contact2_email:' . "\t" . $contact2_email . "\n" .     'payable_to:' . "\t" . $payable_to . "\n" .     'mailing_address1:' . "\t" . $mailing_address1 . "\n" .     'mailing_address2:' . "\t" . $mailing_address2 . "\n" .     'mailing_city:' . "\t" . $mailing_city . "\n" .     'mailing_state:' . "\t" . $mailing_state . "\n" .     'mailing_zipcode:' . "\t" . $mailing_zipcode . "\n" .     'commments:' . "\t" . $commments . "\n" ;

//send the email     zen_mail(STORE_NAME, SEND_TO_ADDRESS, EMAIL_SUBJECT,       OFFICE_FROM . "\t" . $name . "\n" .       OFFICE_EMAIL . "\t" . $email_address . "\n\n" .       '------------------------------------------------------' . "\n\n" .       $email_message_contents .  "\n\n" .       '------------------------------------------------------' . "\n\n" .       OFFICE_USE . "\t" . "\n" .       OFFICE_LOGGIN_NAME . "\t" . $customer_name . "\n" .       OFFICE_LOGGIN_EMAIL . "\t" . $customer_email . "\n" .       OFFICE_IP_ADDRESS . "\t" . $_SERVER['REMOTE_ADDR'] . "\n" .       OFFICE_HOST_ADDRESS . "\t" . gethostbyaddr($_SERVER['REMOTE_ADDR']) . "\n" .       OFFICE_DATE_TIME . "\t" . date("D M j Y G:i:s T") . "\n",       $name, $email_address);

      zen_redirect(zen_href_link(FILENAME_BAND_SIGNUP, 'action=success'));       } //endif $error=false

  } // endif action

// default email and name if customer is logged in   if($_SESSION['customer_id']) {       $check_customer = $db->Execute("select customers_id, customers_firstname, customers_lastname, customers_password, customers_email_address, customers_default_address_id from " . TABLE_CUSTOMERS . " where customers_id = '" . $_SESSION['customer_id'] . "'");       $email= $check_customer->fields['customers_email_address'];       $firstname= $check_customer->fields['customers_firstname'];       $lastname= $check_customer->fields['customers_lastname'];   }   $breadcrumb->add(NAVBAR_TITLE); ?>**

14 Jul 2004, 07:50
#18
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
174

Re: custom forms - data collection

/includes/templates/YOURS/templates/tpl_band_signup_default.php> **<?php

// // +----------------------------------------------------------------------+ // |zen-cart Open Source E-commerce                                      | // +----------------------------------------------------------------------+ // | Copyright © 2003 The zen-cart developers                          | // |                                                                      | // | http://www.zen-cart.com/index.php                                    | // |                                                                      | // | Portions Copyright © 2003 osCommerce                              | // +----------------------------------------------------------------------+ // | This source file is subject to version 2.0 of the GPL license,      | // | that is bundled with this package in the file LICENSE, and is        | // | available through the world-wide-web at the following url:          | // | http://www.zen-cart.com/license/2_0.txt.                            | // | If you did not receive a copy of the zen-cart license and are unable | // | to obtain it through the world-wide-web, please send a note to      | // | [email protected] so we can mail you a copy immediately.          | // +----------------------------------------------------------------------+ // $Id: tpl_band_signup_default.php,v 1.0 2004/07/14 00:00:00 DrByteZen Exp $ // ?>

<STYLE> BODY {scrollbar-face-color: #528607; scrollbar-shadow-color: #3B6201; scrollbar-highlight-color: #639E0C; scrollbar-3dlight-color: #7BB625; scrollbar-darkshadow-color: #2C4901; scrollbar-track-color: #3F6A01; scrollbar-arrow-color: #D8FA2E} </STYLE> <?php echo zen_draw_form('band_signup', zen_href_link(FILENAME_BAND_SIGNUP, 'action=send')); ?>

<table  width="100%" border="0" cellspacing="2" cellpadding="2" >   <tr>     <td class="breadCrumb" colspan="2"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></td>   </tr>   <tr>     <td class="pageHeading" colspan="2"><h1><?php echo HEADING_TITLE; ?></h1></td>   </tr>

<?php   if ($messageStack->size('band_signup') > 0) { ?>

  <tr>     <td class="main" colspan="2"><?php echo $messageStack->output('band_signup'); ?></td>   </tr>

<?php   }   if (isset($_GET['action']) && ($_GET['action'] == 'success')) { ?>

  <tr>     <td class="plainBox" colspan="2"><?php echo TEXT_SUCCESS; ?></td>   </tr>   <tr>     <td class="main" colspan="2"><?php echo zen_back_link() . zen_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td>   </tr>

<?php   } else { ?> <tr>     <td colspan="2" valign="top" bgcolor="#336600">**Band Information:**</td> </tr> <tr>     <td class="plainBoxHeading" align="right" valign="top">Band Name:</td>     <td class="main" valign="top"><input type="text" name="band_name"></td> </tr> <tr>     <td class="plainBoxHeading" align="right" valign="top">Band Genre:</td>     <td class="main" valign="top"><input type="text" name="band_genre"></td> </tr> <tr>     <td class="plainBoxHeading" align="right" valign="top">Country of Origin:</td>     <td class="main" valign="top"><input type="text" name="band_country"></td> </tr> <tr>     <td class="plainBoxHeading" align="right" valign="top">State/Province of Origin:</td>     <td class="main" valign="top"><input type="text" name="band_state"></td> </tr> <tr>     <td class="plainBoxHeading" align="right" valign="top">City of Origin:</td>     <td class="main" valign="top"><input type="text" name="band_city"></td> </tr> <tr>     <td class="plainBoxHeading" colspan="2" valign="top" bgcolor="#336600">**Band Contacts:**</td> </tr> <tr>     <td class="plainBoxHeading" align="right" valign="top">Contact 1 First Name:</td>     <td class="main" valign="top"><?php echo zen_draw_input_field('contact1_firstname', $firstname); ?></td> </tr> <tr>     <td class="plainBoxHeading" align="right" valign="top">Contact 1 Last Name:</td>     <td class="main" valign="top"><?php echo zen_draw_input_field('contact1_lastname', $lastname); ?></td> </tr> <tr>     <td class="plainBoxHeading" align="right" valign="top">Contact 1 Phone:</td>     <td class="main" valign="top"><input type="text" name="contact1_phone"></td> </tr> <tr>     <td class="plainBoxHeading" align="right" valign="top">Contact 1 Email:</td>     <td class="main" valign="top"><?php echo zen_draw_input_field('contact1_email', ($error ? $_POST['contact1_email'] : $email), ' size="30"'); ?></td> </tr> <tr>     <td class="plainBoxHeading" align="right" valign="top">Contact 2 First Name:</td>     <td class="main" valign="top"><input type="text" name="contact2_firstname"></td> </tr> <tr>     <td class="plainBoxHeading" align="right" valign="top">Contact 2 Last Name:</td>     <td class="main" valign="top"><input type="text" name="contact2_lastname"></td> </tr> <tr>     <td class="plainBoxHeading" align="right" valign="top">Contact 2 Phone:</td>     <td class="main" valign="top"><input type="text" name="contact2_phone"></td> </tr> <tr>     <td class="plainBoxHeading" align="right" valign="top">Contact 2 Email:</td>     <td class="main" valign="top"><?php echo zen_draw_input_field('contact2_email', $_POST['contact2_email'], ' size="30"'); ?></td> </tr> <tr>     <td class="plainBoxHeading" colspan="2" valign="top" bgcolor="#336600">**Payment Information:**</td> </tr> <tr>     <td class="plainBoxHeading" align="right" valign="top">Payment Cheques Payable to:</td>     <td class="main" valign="top"><input type="text" name="payable_to"></td> </tr> <tr>     <td class="plainBoxHeading" align="right" valign="top">Mailing Address 1:</td>     <td class="main" valign="top"><input type="text" name="mailing_address1"></td> </tr> <tr>     <td class="plainBoxHeading" align="right" valign="top">Mailing Address 2: (optional)</td>     <td class="main" valign="top"><input type="text" name="mailing_address2"></td> </tr> <tr>     <td class="plainBoxHeading" align="right" valign="top">City:</td>     <td class="main" valign="top"><input type="text" name="mailing_city"></td> </tr> <tr>     <td class="plainBoxHeading" align="right" valign="top">State/Province:</td>     <td class="main" valign="top"><input type="text" name="mailing_state"></td> </tr> <tr>     <td class="plainBoxHeading" align="right" valign="top">Country:</td>     <td class="main" valign="top"><input type="text" name="mailing_country"></td> </tr> <tr>     <td class="plainBoxHeading" align="right" valign="top">Postal/Zip code:</td>     <td class="main" valign="top"><input name="mailing_zipcode" type="text" size="10"></td> </tr> <tr>     <td class="plainBoxHeading" align="right" valign="top">Comments (optional):</td>     <td class="main" valign="top"><?php echo zen_draw_textarea_field('comments', 'soft', 40, 4); ?></td> </tr> <tr>     <td class="main" colspan="2" align="right" valign="top">I have read and agree to the user agreement:       <input type="checkbox" name="termsandconds" value="1"></td> </tr> <tr>     <td class="main"><?php echo zen_back_link() . zen_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td>     <td align="right"><?php echo zen_image_submit('button_send.gif', SIGN_US_UP); ?></td>   </tr> <?php   } ?> </table></form>**
14 Jul 2004, 08:02
#19
waynerd avatar

waynerd

New Zenner

Join Date:
Jun 2004
Posts:
45
Plugin Contributions:
0

Re: custom forms - data collection

Okay Doc, I went through everystep but I'm missing something. What do I have to change the

" define('BOX_INFORMATION_CONTACT2', 'Band Account Form');"

to to work with the files I just added that you created?

14 Jul 2004, 08:08
#20
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
174

Re: custom forms - data collection

In /modules/sideboxes/more_information.php

    $more_information[] = '<a href="' . zen_href_link(FILENAME_BAND_SIGNUP) . '">' . 'Band Signup Form' . '</a>';

Or maybe add a line to english.php saying

define('BOX_INFORMATION_BAND_SIGNUP','Band Signup Form');

and then use this instead of the other one above:```    $more_information[] = '<a href="' . zen_href_link(FILENAME_BAND_SIGNUP) . '">' . 'Band Signup Form' . '</a>';


(If you're using the "information" box instead of the "more_information" box, then make that change where appropriate.)