# Parse error?

**URL:** <https://forum.kirupa.com/t/parse-error/250187>\
**Category:** Uncategorized\
**Created:** [January 26, 2008, 6:11pm UTC](https://forum.kirupa.com/t/parse-error/250187 "2008-01-26T18:11:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![negativecreep](https://avatars.discourse-cdn.com/v4/letter/n/8491ac/32.png) [@negativecreep](https://forum.kirupa.com/u/negativecreep)\
**Post date:** [January 26, 2008, 6:11pm UTC](https://forum.kirupa.com/t/parse-error/250187/1 "2008-01-26T18:11:22Z")

</div>

Hey people, I am having a weird parse error with my PHP code, I am not sure if it something simple and my mind is so coded out right now or something else.

```auto
if($_GET[do]):
    include "templates/edit.html";
elseif($_GET[do]=="edit"): include "script/change.php"; 
elseif($_GET[do]=="delete"): include "script/delete.php"; 
elseif($_GET[do]=="view"): include "script/view.php"; 
endif; 

```

I get a parse error on the first if line,

**Parse error** : parse error, expecting `’]’

But I close the get. Any help or explanations appreciated.
