Jump to content


This topic is now archived and is closed to further replies.


changing the action of a form

Recommended Posts

I have a form which contains two radio buttons to run a report. The radio buttons are called selection. Based on the user selection, the value becomes dept or date.

I want to change the action of the form based on the selection. I am attempting the following if statement which fails.

        <form name="form1" method="post" 
          ('selection' == "Dept")

Can someone let me know if Dreamweaver has something built in already to do this or on how to fix the php code. I receive the following error:

Parse error: parse error, unexpected '='

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.