This is a discussion on PHP Help Needed - How to get the value of a variable within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I need some PHP help. Here is my problem: I have a class that is called from within a template. ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I need some PHP help. Here is my problem: I have a class that is called from within a template. This class calls 5 functions that create some HTML for displaying the product attributes. The code is passed back to the template is ECHOed out. The code in the class is creating a drop-down for each product attribute. I am trying to add code to put in an input text box under the drop-downs. I added the following function Code: function _draw_textinput_attributes()
{
$out='';
$out.='<tr><td align="right" class=main><b>'."Custom Text:</b></td><td class=main>".tep_draw_input_field('customtext', '', 'style="width: 400"')."</td></tr>\n";
return $out;
}
How do I access the value that is stored in 'customtext'? Is there a way to access this from outside of the class? Any help would be appreciated. |
| Sponsored Links | ||
| ||
| |
|
#2
| |||
| |||
| I figured it out... |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| variable shipping based on weight and price | darren777 | osCommerce 2.2 Modification Help | 0 | 11-01-2005 09:16 AM |
| A little help needed | blain | osCommerce 2.2 Modification Help | 1 | 06-02-2005 12:13 PM |
| variable free shipping rate per country | mattkern | osCMax v1.7 General Mods Discussion | 1 | 12-17-2004 04:26 PM |
| Increasing Session Variable sizes? | ryanmhubbard | osCMax v1.7 Discussion | 0 | 09-30-2004 09:35 AM |
| Heavy problems with passed variable and member function | Markus | osCommerce 2.2 Installation Help | 2 | 09-15-2003 07:24 AM |