$view = $_GET['view'];Before retrieving the entry data, it needs to verify if this entry was created by this user with a form (form id=6). Any suggestion? Thanks.
$entry_id = FrmEntry::getOne($view);
$entry_id = FrmProEntriesController::show_entry_shortcode( array( 'id' => $view, 'format' => 'array' ) );
$entry_id = json_decode(json_encode($entry_id), True);
Why are you overriding $entry_id? Assuming 'view' is a parameter that has an entry id, you are returning the full form entry with getOne. Then you immediately over write the variable with show_entry_shortcode and last, you decode the shortcode returned in the previous statement. I don't understand how this code can work at all.
Please login or Register to submit your answer