Form handling via my own php script?...

User 2254047 Photo


Registered User
7 posts

Thanks - I didn't mean to impugn Web Form Builder at all...I think it's a fabulous way to easily make great looking forms, and everyone has commented on how nice they are.

I'm just trying to make Web Form Builder do things beyond its designed use, and running into problems. Using a PHP handler to process the form, I still can't see the values in a group of checkboxes, for example...all I get is a piece of text, 'Array'. That means I probably can't make it do what I'm trying to do...which, as I said, is beyond the scope of what the program so capably does.

I think I'll keep studying the exported form's styling, because although I'm a whiz with basic HTML forms, I'm not as experienced in CSS styling. Since Web Form Builder does such a great job with that, I'll have some excellent models to work towards as I continue to hand code the PHP/MySQL part.
User 187934 Photo


Senior Advisor
20,271 posts

You could copy the form html right into your page or use the actual form page instead of using the iframe. Otherwise a little java script to get the parent redirect.
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 464893 Photo


Ambassador
1,611 posts

You can try this it will take the last entry from a csv file and extract each value items 0 to N. It is a script I used for a demo

<?php
error_reporting(E_ALL & ~E_NOTICE);
$file_handle = fopen("Displayform/storage/csv/results.csv", "r");// the address where the file is located
while (!feof($file_handle)){
$item = fgetcsv($file_handle, 1024);
if($item=="")Break;// make sure the last entry is used
$lastitem=$item;
} // close loop
fclose($file_handle);//Close temp file
// Now extract values into your variables
$data1 = $lastitem[0];
$data2= $lastitem[1];
$dataN=$lastitem[N];
?>

As I said this is how I like to get the values. I use a csv file in most cases which Form Builder creates and fills. You can then erase the csv or just leave it for history. Once you have your values assigned to variables you can have your way with them.
The Guy from OZ


User 2254047 Photo


Registered User
7 posts

Thanks to both of you for your help, your time, and your great suggestions for getting this to work the way I had hoped. I appreciate your wisdom! Best wishes...

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.