osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 05-17-2006, 09:50 PM
Member
 
Join Date: Aug 2004
Location: Illinois
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ASasek
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 05-19-2006, 06:08 AM
Member
 
Join Date: Aug 2004
Location: Illinois
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ASasek
Default RE: PHP Help Needed - How to get the value of a variable

I figured it out...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 07:35 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax