Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

Between [STARTDATE] and [ENDDATE]

Posted 22 Nov 2005 21:02:25
1
has voted
22 Nov 2005 21:02:25 jamie b posted:
I have used the mxkollection (from interakt) custom form wizard.
The form has two textfields namely 'startdate' and 'enddate' (both is date format).

In Step1 of the custom form wizard > specify redirect page:
when finished, go to: myfile1.php?startdate={startdate}&enddate={enddate}

And then ofcourse the Submit button will send the dates to myfile1.php which receives the dates through a URL variable.

No problems, all works fine, but is it possible to do the following ?:

On the form I would like to have 3(or more) Submit Buttons, where:

Button1 goto>> myfile1.php?startdate={startdate}&enddate={enddate}
Button2 goto>> myfile2.php?startdate={startdate}&enddate={enddate}
Button3 goto>> myfile3.php?startdate={startdate}&enddate={enddate}

IE: I want only one form where the user enters the start- and end dates,
but the user have the option to select different reports for the requested dates.

Any ideas ?

Regards,
Jamie.

Replies

Replied 25 Nov 2005 16:12:06
25 Nov 2005 16:12:06 Stefan P replied:
If I understand what you are trying to achieve, then you only need one submit button. When the user selects a given report, the field value should correspond to the date range for that report e.g.

<form name="form" id="form" method="post" action="">
<select name="select">
<option value="startdate={startdate}&enddate={enddate}">Report 1</option>
<option value="startdate={startdate}&enddate={enddate}">Report 2</option>
<option value="startdate={startdate}&enddate={enddate}">Report 3</option>
</select>
</form>

Stefan - www.pash.biz

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DMX | ASP | VBScript | ACCESS | SQL Server | IIS5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply to this topic