I want my own processing

User 252363 Photo


Registered User
4 posts

Hi all,
Brand new to this tool. I have been used to handling my own processing when the form is submitted. I don't want a 'thank you' page generated but just reload the page, check for valid submission and re-direct to another page (see attached).
Can I do this in Form designer.
Thanks for your help.
Attachments:
User 187934 Photo


Senior Advisor
20,271 posts

All validation of forms should be done at submission not after a page reload. This would require a significant amount of coding to make this work when it's really not necessary. Have the user submit and the form will be validated by the built in validation. If it's good then the form will proceed to your location of choice. That can be set in the form builder. You can either use the built in confirmation or use the custom url redirect.:cool:
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 252363 Photo


Registered User
4 posts

Thanks for your quick reply, Eric.
Looks like I need to re-think the way I do things.
If I re-direct to anther page via custom URL how can I make the form values available to the next page so I can continue processing - I use the data from the to populate a MySQL database and display a customised message.
Thanks again.

Eric Rohloff wrote:
All validation of forms should be done at submission not after a page reload. This would require a significant amount of coding to make this work when it's really not necessary. Have the user submit and the form will be validated by the built in validation. If it's good then the form will proceed to your location of choice. That can be set in the form builder. You can either use the built in confirmation or use the custom url redirect.:cool:
User 187934 Photo


Senior Advisor
20,271 posts

I always make my own myformname.php to process the data on custom needs.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 252363 Photo


Registered User
4 posts

I must be missing something here. I have changed to redirect to a URL with a value attached -

http://www.mysite.co.uk/racer.php?key1=$racer

where 'racer' is the name of the form field I want to pass to the page 'racer.php' and continue with my processing.
In racer.php I attempt to get the value in the field 'racer' via 'key1' with - <?php $racer = $_GET['key1']; ?>

When I try to use the value in $racer it's not what I was expecting, but the literal '$racer'

Please help, I'm beginning to think this isn't the software I need, all I really want is a nice looking form with good validation and the ability to give me my data to use how I choose !!

Thanks.
Eric Rohloff wrote:
I always make my own myformname.php to process the data on custom needs.
Attachments:
User 187934 Photo


Senior Advisor
20,271 posts

Your not going to be able to do it that way unless you write your own formname.php. I sure you could hack through the files and accomplish it but that can take way longer then just writing your own.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 252363 Photo


Registered User
4 posts

OK, I'm quite happy to write my own script. Does 'formname' refer to the name of the form - if my form is called XXXXXX am I looking for XXXXXX.php ? Are the contents like this -
"<?php
$scriptpath = substr( $_SERVER['SCRIPT_FILENAME'], 0, -4 );
$paths = explode ( DIRECTORY_SEPARATOR , $scriptpath );
$myName = end($paths);
require $scriptpath . '/fbapp/php/config.inc.php';
if( strtoupper( $_SERVER['REQUEST_METHOD'] ) == 'POST' ) {
$ctl = new FormController();
$ctl->Dispatch();
} else {
if( ! isset( $_GET['action'] ) ) $myPage->ReportStats( 'NotifyFormView' );
}
ob_start();
$myPage->Show();
ob_end_flush();
?> "

Where do I put my code or do I replace what's there.
I really need to get to grips with this, otherwise my purchase has been a complete waste of money....


Eric Rohloff wrote:
Your not going to be able to do it that way unless you write your own formname.php. I sure you could hack through the files and accomplish it but that can take way longer then just writing your own.
User 187934 Photo


Senior Advisor
20,271 posts

Yes, You can capture all the variables and process them by replacing the myformname.php with your own scripts.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.