Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP Syntax Question


Guest

Recommended Posts

I'm looking to auto populate a text field with information from a cookie OR a standard piece of information. Basically, I'm looking for the PHP code in order to do this:

 

tep_draw_input_field('fieldname', IF_COOKIE_EXISTS put $_COOKIE["cookieinfo"]) here ELSE put $this_info)

 

Anyone?

Thanks in advance!

 

Brian

Link to comment
Share on other sites

Not that anyone else will ever read/need this info, but i hacked it out myself...here goes:

 

<?php if ($ai_headline != '') {

 

  echo $ai_headline;

  } else

  echo stripslashes($product_info['products_headline']); ?>

 

Though t I would post this in the spirit of Open Source.

 

:) Brian

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...