***UPDATED*** DB Technosystems Form Processor 02/09/2011

In this section you can share self-made extensions with other users of WYSIWYG Web Builder.

There are already more than 250 extensions available!
Post Reply
User avatar
me.prosenjeet
 
 
Posts: 1282
Joined: Mon Dec 24, 2007 1:50 pm
Location: Lucknow
Contact:

Post by me.prosenjeet » Sun Aug 02, 2009 4:51 pm

Check it after 5 minutes form now, I just changed the code. Uploading the one with the edit you suggested in 2 minutes.
Update: You may try now
.
Click here to check my Pro WB Extensions
Click here to check my Pro WB Templates
---------------------------------------------------------
www.Lucknowwebs.com
---------------------------------------------------------

User avatar
Navaldesign
 
 
Posts: 994
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Post by Navaldesign » Sun Aug 02, 2009 6:08 pm

I can't know about the issue with the mail ending up in your spam folder. In my email it is all ok.

I fixed the background, download from your server the updated cost.php file.

I was forgetting that this is the second page, so it was the $POST[] =...... line that needed the background added.
www.dbtechnosystems.com

User avatar
me.prosenjeet
 
 
Posts: 1282
Joined: Mon Dec 24, 2007 1:50 pm
Location: Lucknow
Contact:

Post by me.prosenjeet » Sun Aug 02, 2009 6:27 pm

Wow !!!!!!!!
It worked thanks a load once again...you are a Saviour for sure :lol:
.
Click here to check my Pro WB Extensions
Click here to check my Pro WB Templates
---------------------------------------------------------
www.Lucknowwebs.com
---------------------------------------------------------

User avatar
Sandyfishgirl
 
 
Posts: 38
Joined: Tue May 06, 2008 11:04 pm
Location: Florida
Contact:

Question about mail engine settings

Post by Sandyfishgirl » Sun Aug 02, 2009 8:13 pm

I'm just trying this form and ok, until I get to the "I. Mail Engine Settings". Up to this point, I am following instructions to build the form - but I don't know anything about this section. Checking websites for this information, is not helping me a lot.

I "think" I should just leave the setting as Mail() function. I will not allow uploads or data storage.

Is there a place where I can read more on the subject of mail engine settings - in SIMPLE terms? Then I will know the correct information for my form.

Under "Visual Settings" the color picker is WAY

:roll: - - it JUST hit me what this extension does - I was thinking it WAS A FORM, with the auto responder built-in :shock: ha ha
Now, that I'm with the "program" I think I still need the first issue (mail engine settings) answered. BUT now, I should also know - - WHERE on my page should this extension be placed in relation to my form? Next to it? on top of it? Within the "grid"? Under the kitchen sink?


THANK YOU!!

User avatar
me.prosenjeet
 
 
Posts: 1282
Joined: Mon Dec 24, 2007 1:50 pm
Location: Lucknow
Contact:

Re: Question about mail engine settings

Post by me.prosenjeet » Sun Aug 02, 2009 8:18 pm

Sandyfishgirl wrote:I'm just trying this form and ok, until I get to the "I. Mail Engine Settings". Up to this point, I am following instructions to build the form - but I don't know anything about this section. Checking websites for this information, is not helping me a lot.

I "think" I should just leave the setting as Mail() function. I will not allow uploads or data storage.

Is there a place where I can read more on the subject of mail engine settings - in SIMPLE terms? Then I will know the correct information for my form.

Under "Visual Settings" the color picker is WAY

:roll: - - it JUST hit me what this extension does - I was thinking it WAS A FORM, with the auto responder built-in :shock: ha ha
Now, that I'm with the "program" I think I still need the first issue (mail engine settings) answered. BUT now, I should also know - - WHERE on my page should this extension be placed in relation to my form? Next to it? on top of it? Within the "grid"? Under the kitchen sink?


THANK YOU!!
If you read the pdf thats enclosed along with the download that may sort some of the questions in mind.
Regarding your last question whether to place the extension under the kitchen sink, yes you may do that and still it will work...thats the beauty of this extension just put it on any damn place on the form page and wallah! it fires! :wink:
.
Click here to check my Pro WB Extensions
Click here to check my Pro WB Templates
---------------------------------------------------------
www.Lucknowwebs.com
---------------------------------------------------------

User avatar
Navaldesign
 
 
Posts: 994
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Question about mail engine settings

Post by Navaldesign » Sun Aug 02, 2009 8:58 pm

Sandyfishgirl wrote:I "think" I should just leave the setting as Mail() function. I will not allow uploads or data storage.
mail() will be ok in most cases. Just in those "difficult" cases where SMTP authentication is required or the mail() is not enabled, you should use SMTP.
Last, for those rare cases where everything else will fail, Sendmail is the last alternatice.
Under "Visual Settings" the color picker is WAY

:roll: - - it JUST hit me what this extension does - I was thinking it WAS A FORM, with the auto responder built-in :shock: ha ha
Now, that I'm with the "program" I think I still need the first issue (mail engine settings) answered. BUT now, I should also know - - WHERE on my page should this extension be placed in relation to my form? Next to it? on top of it? Within the "grid"? Under the kitchen sink?
Under the sink is as good as any other place. In other words, anywhere.

To be honest, This form processor is actually an evolution of ABVFP. The next update, will allow php validations:

required field, list of values, text , number, email, zip codes, passwords, password strength, equal fields, credit cards, and probably more.

The Includes allow advanced users to embed their own code in the script so it can perform calculations, validations, cross checks, create files, update multiple database tables, whatever other task you can think of, that can be performed using php code. It also allows for preview pages and multipage forms. It allows (just as me.prosenjeet did) to create a calculation script and add it's results in the mail. And much more!
www.dbtechnosystems.com

User avatar
Sandyfishgirl
 
 
Posts: 38
Joined: Tue May 06, 2008 11:04 pm
Location: Florida
Contact:

THANK YOU BOTH!!

Post by Sandyfishgirl » Sun Aug 02, 2009 9:09 pm

that's the beauty of this extension just put it on any damn place on the form page and wallah! it fires!
That's great to hear!
Under the sink is as good as any other place. In other words, anywhere.
:D


The Includes allow advanced users to embed their own code in the script so it can perform calculations, validations, cross checks, create files, update multiple database tables, whatever other task you can think of, that can be performed using php code. It also allows for preview pages and multipage forms. It allows (just as me.prosenjeet did) to create a calculation script and add it's results in the mail. And much more!
:shock: You may find ME under the kitchen sink - where the whiskey is - before I understand all of THAT! ha ha

THANKS to guys like you two - I can do fantastic things with my websites! :D

User avatar
jerryco
 
 
Posts: 159
Joined: Fri Mar 27, 2009 2:42 pm
Location: Purmerend, Holland

Post by jerryco » Mon Aug 03, 2009 8:04 am

Navaldesign wrote:No.

Ajax is based on a Javascript event listener, to trigger the HTTPRequest. If Javascript is disabled it will not work.
What about 'sending' the info to the next page with the error message. Would that be a watertight solution?
// Love is the acceptance of nothing / So, you're here. Now dance.

User avatar
Navaldesign
 
 
Posts: 994
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Post by Navaldesign » Mon Aug 03, 2009 9:11 am

Jerry82 wrote: What about 'sending' the info to the next page with the error message. Would that be a watertight solution?
I'm not sure what the purpose of this would be. I mean, as i said, Javascript (or Ajax) validation is fine as long as the user is not a spammer / hacker.

When it comes to those, only PHP validation can really protect you.
And PHP validation will be the next implementation to the form processor.

However, PHP validation means that the script finds the errors, and displays an error page which reports the errors, it then has a "Back" button to get the user back to the form page.
Or, it can also return the user back to the form page, and display the errors in a "error" div.
Now, assuming that the form also has a captcha, this means that most probably the values that the user had filled in will be lost. So you need to implement a mechanism that will allow to keep these values.

There are many ways to aceive this, from using sessions to posting back the values (others too, more complicated)

Al of these solutions require some experience from the user, as they are not of standard implementation.

DBTS Form processor has two cool features that makes this implementation easier: the Copy in Session tool, and the User Includes. The first will automatically copy the submitted values in the $_SESSION superglobal, so they can be retrieved easily. The second will allow advanced users to include in the processor whatever code snippet of their own, to acheive similar tasks.

Of course, you will need to add some code in the original WB form, in order to make it retrieve these values from the SESSIOn array or the POST array.

I plan to publish some tutorials on how to perform all of these tasks using DBTS Form Processor Extension, but it requires quite some time....
www.dbtechnosystems.com

User avatar
jerryco
 
 
Posts: 159
Joined: Fri Mar 27, 2009 2:42 pm
Location: Purmerend, Holland

Post by jerryco » Mon Aug 03, 2009 9:28 am

Thank you for explaining that.
// Love is the acceptance of nothing / So, you're here. Now dance.

User avatar
heg
 
 
Posts: 4
Joined: Sun Nov 09, 2008 10:22 pm
Location: Death Valley

Post by heg » Thu Aug 06, 2009 3:12 am

Wow! this is great!!! Thanks Navaldesign... Tested and working! :D

User avatar
kevinp
 
 
Posts: 96
Joined: Wed Feb 21, 2007 2:51 pm
Location: Preston, Lancashire, England
Contact:

Post by kevinp » Fri Aug 07, 2009 7:57 am

What a fantastic script. It seems the posibilities are endless.

I've added the file below to 'After Form Data Reception Include URL' on the includes section.

Code: Select all

<? 
//set the random id length 
$random_id_length = 8; 

//generates a random id encrypt it and store it in $rnd_id 
$rnd_id = crypt(uniqid(rand(),1)); 

//removes any slashes that might have been generated 
$rnd_id = strip_tags(stripslashes($rnd_id)); 

//Removing any . or / and reversing the string 
$rnd_id = str_replace(".","",$rnd_id); 
$rnd_id = strrev(str_replace("/","",$rnd_id)); 

//finally take the first 8 characters from the $rnd_id 
$rnd_id = substr($rnd_id,0,$random_id_length); 
// I've added this later in the echo and e-mail 
//echo "When contacting us please quote: $rnd_id"; 
//Converts the reference to uppercase 
$rnd_id = strtoupper($rnd_id); 

$_POST['Submission ID'] = $rnd_id; // This line adds in the POST superglobal the unique ID you created 
$autoresponderend .= "\nWhen contacting us please quote: $rnd_id"; // This line adds to the autoresponder footer the message with the quote ID 
?>
which adds a unique ID to each email. This works fine but the ID doesn't save to the csv file. Is there a way to make the script include $rnd_id when it creates the CSV.

Also, If I wanted to echo some of the form fields to the success page as a confirmation of the submission is this possible using the Copy in or Copy from session options. I can't seem to identify the correct $names to show the fields.

Cheers
Kev

User avatar
me.prosenjeet
 
 
Posts: 1282
Joined: Mon Dec 24, 2007 1:50 pm
Location: Lucknow
Contact:

Post by me.prosenjeet » Fri Aug 07, 2009 12:47 pm

kevinp wrote:Also, If I wanted to echo some of the form fields to the success page as a confirmation of the submission is this possible using the Copy in or Copy from session options. I can't seem to identify the correct $names to show the fields.
Kev
That will be so nice Naval, if it can be done...for example remember my cost.php so in the Thank you page it shows the total tentative cost.
Can that be done?
.
Click here to check my Pro WB Extensions
Click here to check my Pro WB Templates
---------------------------------------------------------
www.Lucknowwebs.com
---------------------------------------------------------

User avatar
Navaldesign
 
 
Posts: 994
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Post by Navaldesign » Fri Aug 07, 2009 2:47 pm

kevinp wrote:What a fantastic script. It seems the posibilities are endless.

I've added the file below to 'After Form Data Reception Include URL' on the includes section which adds a unique ID to each email. This works fine but the ID doesn't save to the csv file. Is there a way to make the script include $rnd_id when it creates the CSV.
Change the code to

Code: Select all

<?
//set the random id length
$random_id_length = 8;

//generates a random id encrypt it and store it in $rnd_id
$rnd_id = crypt(uniqid(rand(),1));

//removes any slashes that might have been generated
$rnd_id = strip_tags(stripslashes($rnd_id));

//Removing any . or / and reversing the string
$rnd_id = str_replace(".","",$rnd_id);
$rnd_id = strrev(str_replace("/","",$rnd_id));

//finally take the first 8 characters from the $rnd_id
$rnd_id = substr($rnd_id,0,$random_id_length);
// I've added this later in the echo and e-mail
//echo "When contacting us please quote: $rnd_id";
//Converts the reference to uppercase
$rnd_id = strtoupper($rnd_id);

$POST['Submission ID'] = $rnd_id; // This line adds in the POST array the unique ID you created
$autoresponderend .= "\nWhen contacting us please quote: $rnd_id"; // This line adds to the autoresponder footer the message with the quote ID
?>
Note the changed $POST instead of $_POST


Also, If I wanted to echo some of the form fields to the success page as a confirmation of the submission is this possible using the Copy in or Copy from session options. I can't seem to identify the correct $names to show the fields.
The easiest way is to add another include.
Lets suppose that you have created a success page, named "success.php". Write the text that you want to have in the page, and in the place of the variables that need to be merged, place this text (as an example):

'.$Name.'

This can be in the middle of a sentence, in which case it will be something like:

Hello '.$Name.' Thank you for your Submission! '

Obviously, $Name is the variable, EXACTLY as your form field (Name)

AVOID form field names with white spaces, in example "How did you find us", use underscores "How_did_you_find_us". The script will strip the underscores off when mailing you.

Right click the text and add the following in the Before tag of the text html:

<?
echo '


and in the After tag,

';
?>

Now, in Start of page add:

<?
extract($POST, EXTR_OVERWRITE);
?>


Set the form processor as follows:

After Processing Befavior : Include
Immediately the next field:

Page or script to include before script ends: success.php

Published the changed form page and the success page and test.
Last edited by Navaldesign on Sat Aug 08, 2009 9:52 am, edited 2 times in total.
www.dbtechnosystems.com

User avatar
me.prosenjeet
 
 
Posts: 1282
Joined: Mon Dec 24, 2007 1:50 pm
Location: Lucknow
Contact:

Post by me.prosenjeet » Fri Aug 07, 2009 4:08 pm

Navaldesign wrote:
Set the form processor as follows:

After Processing Befavior : Include
Immediately the next field:

Page or script to include before script ends: success.php

Published the changed form page and the success page and test.
Naval, when I am using the cost.php, it is set at "Page or script to include before script ends:"(where you suggest to put success.php) when "After Processing Befavior" is set to 'Redirect'
So how do I alter the processor to get the $total from the cost.php in the success.php?
.
Click here to check my Pro WB Extensions
Click here to check my Pro WB Templates
---------------------------------------------------------
www.Lucknowwebs.com
---------------------------------------------------------

Post Reply