I need some suggestions on how to create the following scenario:
I currently have a form built in the old version of Chronoforms that I have been using and need to move it over to Chronoforms v5:
This is private content
On the first page I am having the user select the type of tag they want to order - type, style, size and color. Based on the selection, the next page should go out to a table, run a sql query to locate the exact tag itemID and other record fields.
Parts of my code from my php form:
$tagtype = $_POST['tagtype'];
$tagstyle = substr($_POST['tagstyle'], 4);
$tagsize = $_POST['tagsize'];
$tagcolor = $_POST['tagcolor'];
"$taginfo = "SELECT * FROM #__rabiestag_items WHERE tagtype = '$tagtype' AND tagstyle = '$tagstyle' AND tagsize = '$tagsize' AND tagcolor = '$tagcolor'";"
$db->setQuery($taginfo);
$options = $db->loadAssocList();
if (is_array($options))
{
foreach ($options as $o)
{
$itemID = $o['itemID'];
$line1 = $o['line1'];
$line2 = $o['line2'];
$line3 = $o['line3'];
$line4 = $o['line4'];
$line5 = $o['line5'];
$slength = $o['seriallength'];
}
}else{
echo "ERROR with Tag Number - Alert Becky";
}
On page two I display the image of what the tag looks like based on what was selected on page one. Also, the max-length attributes are set on the line fields with the limit that is stored for the selected tag.
How can I do this in Chronoform v5?
Thank you for your help,
Becky Olson