Jump to content


Popular Content

Showing content with the highest reputation on 04/11/2021 in all areas

  1. Let's review: $record['bijkomend'] = (isset($_POST['bijkomend'])); The form element with the input name "bijkomend" will get POSTed if the input tag is within the appropriate <form> block. The statement above tests if the form element exists in the POSTed data. But, so far, the answer is either a 'true' or a 'false' logical value. This is the start of a typical test structure called a Tertiary Operator. We can see that with the $_POST['rating']. To finish that statement: $record['bijkomend'] = (isset($_POST['bijkomend'])) ? $_POST['bijkomend'] : ''; The $record array will be saved in the CubeCart_reviews database table, so the new column 'bijkomend' should have been added to that table.
    1 point
  • Create New...