Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help with Reading Text Input


myyee

Recommended Posts

I would like to add a review title to the product_reviews_write.php

 

I have the following code in the html body,

<?php echo '<b>' . SUB_TITLE_REVIEWS_TITLE . '</b> ' . tep_draw_input_field('title', ''); ?>

 

The problem is that I get empty value from $title when trying to insert the value into the database.

 

Please help thanks.

Link to comment
Share on other sites

you need to load your $title var with the post or get arrays when you process the form. For instance

 

$title = tep_db_prepare_input($HTTP_POST_VARS['title']);

Link to comment
Share on other sites

you need to load your $title var with the post or get arrays when you process the form. For instance

 

$title = tep_db_prepare_input($HTTP_POST_VARS['title']);

 

Now I know what I missed. Thanks.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...