Can you spot a syntax error on this line?

Parse error: syntax error, unexpected T_IS_EQUAL, expecting ‘,’ or ‘)’ in /home/public_html/test02.php on line 10

Thanks.

if( isset($_POST['submitted']) || isset($_POST['radio00'] == 'replace') && !isset($_POST['radio00'] == 'delete') || !isset($_POST['radio00'] == 'keep') ) {

do  something;
}

To clarify isset and == are two separate check and must be treated as such. isset is checking for the existence of the variable while == is looking for a specific value.

I am trying to upload an image.
Preview the image.
Then go back into edit mode and choose to keep, delete or replace the image.
Then preview it again, before submitting it to a database.

One of the challenges I run into is when I go back and forth between between edit and preview with a new browser window, parts of the script try to repeat itself.

no problem.
What is it that you are aiming for and checking for with that line?

Thanks for your reply and your help. I am venturing into new territory here.

Yup, you cant have an isset as well as an ==


if( 
    isset($_POST['submitted']) || 
    ($_POST['radio00'] == 'replace') && 
    ($_POST['radio00'] == 'delete') || 
    ($_POST['radio00'] == 'keep') ) { 

do  something; 
}