Dreamweaver bug? Clears out values beginning with question mark

I’m going through the lessons from Sitepoint’s PHP & MySQL book and have run into an apparent bug in the way Dreamweaver handles PHP.

Whenever there is a value beginning with a question mark the value disappears at some point (I’m guessing when the file is first saved or when a certain tag is closed?). This happens in both CS2 and CS3, and it is making CS2 crash when the values are actually saved. :confused:

Examples of cleared values are: (They become empty values =" " )

<a href="?add">Add new joke</a>
<form action="?<?php htmlout($action); ?>" method="post">

Has anyone else run into this issue before and is there a way to fix it? I searched the forum but didn’t see anything discussing this. :confused:

It’s probably worth looking through your Dreamweaver preferences to see if that behavior can be turned off.

I’m able to confirm that the query value is cleared when you create a blank page and add a query before saving first. Saving the page before any query values are added seems to avoid this problem.

Couldn’t find any settings regarding save settings or auto-correcting or handling queries - the closest thing is the Code Rewriting section but none of those settings makes a difference with this.