Results 1 to 2 of 2

PHP Help Needed - How to get the value of a variable

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. ...

      
  1. #1
    Member
    Join Date
    Aug 2004
    Location
    Illinois
    Posts
    66
    Rep Power
    0


    Default PHP Help Needed - How to get the value of a variable

    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;
    	}
    I called tep_draw_input_field and gave my input field the name of 'customtext'

    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.

  2. #2
    Member
    Join Date
    Aug 2004
    Location
    Illinois
    Posts
    66
    Rep Power
    0


    Default RE: PHP Help Needed - How to get the value of a variable

    I figured it out...

Similar Threads

  1. variable shipping based on weight and price
    By darren777 in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 11-01-2005, 09:16 AM
  2. A little help needed
    By blain in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 06-02-2005, 12:13 PM
  3. variable free shipping rate per country
    By mattkern in forum osCMax v1.7 General Mods Discussion
    Replies: 1
    Last Post: 12-17-2004, 04:26 PM
  4. Increasing Session Variable sizes?
    By ryanmhubbard in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 09-30-2004, 09:35 AM
  5. Heavy problems with passed variable and member function
    By Markus in forum osCommerce 2.2 Installation Help
    Replies: 2
    Last Post: 09-15-2003, 07:24 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •