Godkid Posted November 28, 2003 Share Posted November 28, 2003 I'm trying to mod the create_account.php file and add some more fields. I've added the necessary fields to MySQL and have added the following mods to the php file. However, the mods don't work.. would love a tut on adding fields to create_account.php or a review of my code.. i'll add below. at line 54 // edit to define vars $universitycode = tep_db_prepare_input($HTTP_POST_VARS['universitycode']); $ident_number = tep_db_prepare_input($HTTP_POST_VARS['ident_number']); $stustaff = tep_db_prepare_input($HTTP_POST_VARS['stustaff']); // end edit to deifne vars at line 182 (would have been 177 w/out above edits) // edit to capture university code 'institute_id' => $univeristycode, // end edit at line 189 (would have been 181 w/out above edits) // edit to capture student or staff data if (stustaff == 'student') $sql_data_array['student_id'] = $ident_number; if (stustaff == 'staff') $sql_data_array['staff_id'] = $ident_number; if (stustaff == 'true') $sql_data_array['staff_id'] = $boo2; // end edit at line 392 (would have been 379 w/out above edits) <!-- edit to include Unversity id, Staff or Student status, id number !--> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="main"><b>Educational Information</b></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" cellspacing="2" cellpadding="2"> <tr> <td class="main" valign="top">Position:</td> <td class="main"><?php echo tep_draw_radio_field('stustaff', 'student') . ' ' . Student . '<br>' . tep_draw_radio_field('stustaff', 'staff') . ' ' . Staff . ' '; ?></td> </tr> <tr> <td class="main">ID Number:</td> <td class="main"><?php echo tep_draw_input_field('ident_number'); ?></td> </tr> <tr> <td class="main">University Code:</td> <td class="main"><?php echo tep_draw_input_field('universitycode') . ' ' . '<span class="inputRequirement">(Necessary for Educational Prices)</span>'; ?></td> </tr> </table></td> </tr> </table></td> </tr> <!-- end edit to include Unversity id, Staff or Student status, id number !--> Any ideas welcome :D Link to comment Share on other sites More sharing options...
Guest Posted November 29, 2003 Share Posted November 29, 2003 The code looks correct to me. In what way is it not working? Hth, Matt Link to comment Share on other sites More sharing options...
Godkid Posted November 29, 2003 Author Share Posted November 29, 2003 it doesn't write the data into the MySQL fields... :( Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.