Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Form that shows results in previous page


Go to End


2 Posts   2195 Views

Avatar
modernclics

Community Member, 1 Post

19 July 2009 at 8:21am

Edited: 19/07/2009 8:22am

This is the scenario:

I'm using a form to generate a query to a MySQL database, everything is working fine except that the data is shown in a blank page.
What I want to do is to show the Query Result in the same page where the form is. In this case I can't use Director::redirectBack() because the Sql Result will not be displayed.

Is there any way to solve this?

This is the page structure:

Menu 1: Queries
Menu 2: Common Queries: --> Form

Thanks in advance.-

Avatar
joshy

Community Member, 57 Posts

21 July 2009 at 10:13pm

Hiya,

It'll help if you post your current code - preferably via pastie: http://pastie.org/

Cheers