Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9075191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:48:54+00:00 2026-06-16T18:48:54+00:00

I started working with PFBC yesterday and I cannot figure out how to pass

  • 0

I started working with PFBC yesterday and I cannot figure out how to pass my URL $_GET variables and I’ve read every document available to no avail. The other thing I don’t see in the documentation are examples of hidden fields because I tried passing variables that way to no avail. I can see from var dump that the GET variables are picked up on page loading but I can’t pick them up upon ‘submit’. In my script below all variables show up fine except $ids. I’ve tried putting the GET variable into sessions, didnt work….hidden fields, didn’t work, and the way its listed below,didn’t work….for anyone familiar with this class its cake so some guidance here would help a ton. Im using pfbc2.2-php5 which doesnt have nearly the documentation of the old one. My code is:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Step One: Physician Feedback</title>
<link rel="stylesheet" type="text/css" href="MachForm/data/form_1/css/view.css" media="all" />
</head>
<body id="main_body" >
<img id="top" src="MachForm/images/top.png" alt="" />
<div id="form_container">
  <div id="form_container" style="background-color: #004F79; height:45px;"></div>
  <div style="padding:30px;">
    <div class="form_description">
      <h2>Step One: Physician Feedback</h2>
      <p></p>
    </div>
    <?php
session_start();
error_reporting(E_ALL);
include("PFBC/Form.php");
if (isset($_POST["form"])) {
    if (Form::isValid($_POST["form"])) {
        /*The form's submitted data has been validated.  Your script can now proceed with any 
        further processing required.*/
        $ids       = $_GET["nums"];
        $name      = $_POST['name'];
        $title     = $_POST['title'];
        $dept      = $_POST['dept'];
        $phone     = $_POST['phone'];
        $tech      = $_POST['tech'];
        $latex     = $_POST['latex'];
        $eliminate = $_POST['eliminate'];
        $stock     = $_POST['stock'];
        $urgent    = $_POST['urgent'];
        $reason    = $_POST['reason'];
        $date      = $_POST['date+'];
        echo $ids;
        //header("Location: " . $_SERVER["PHP_SELF"]);
    } else {
        /*Validation errors have been found.  We now need to redirect back to the 
        script where your form exists so the errors can be corrected and the form
        re-submitted.*/
        header("Location: " . $_SERVER["PHP_SELF"]);
    }
    exit();
}
?>
   <?php
$options  = array(
    "Order as needed",
    "Shelf Stock",
    "Consignment"
);
$options1 = array(
    "Urgent",
    "High",
    "Medium",
    "Low"
);
$options2 = array(
    "Lower Cost Item",
    "Needed for new procedure",
    "Reduces Length of Stay",
    "Improves Safety",
    "Reduces Procedure Time"
);
$form     = new Form("anything", 700);
$form->addElement(new Element_Hidden("form", "anything"));
$form->configure(array(
    "view" => new View_Grid(array(
        2,
        2,
        2,
        2,
        1,
        1,
        1
    ))
));
$form->addElement(new Element_Textbox("Name:", "name", array(
    "required" => 1
)));
$form->addElement(new Element_Textbox("Title:", "title", array(
    "required" => 1
)));
$form->addElement(new Element_Textbox("Department:", "dept", array(
    "required" => 1
)));
$form->addElement(new Element_Textbox("Phone:", "phone", array(
    "required" => 1
)));
$form->addElement(new Element_YesNo("Is this new technology:", "tech", array(
    "required" => 1
)));
$form->addElement(new Element_YesNo("Does this product contain latex:", "latex", array(
    "required" => 1
)));
$form->addElement(new Element_YesNo("Is the current technology being eliminated:", "eliminate", array(
    "required" => 1
)));
$form->addElement(new Element_Radio("What is the stocking preference:", "stock", $options, array(
    "inline" => 1,
    "required" => 1
)));
$form->addElement(new Element_Radio("How urgent is this request:", "urgent", $options1, array(
    "inline" => 1,
    "required" => 1
)));
$form->addElement(new Element_Select("Primary Rationale For this request:", "reason", $options2, array(
    "required" => 1
)));
$form->addElement(new Element_Date("Date:", "date+"));
$form->addElement(new Element_Button);
$form->render();
//var_dump(get_defined_vars());
?>
 </div>
</div>
<img id="bottom" src="MachForm/images/bottom.png" alt="" />
</body>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T18:48:55+00:00Added an answer on June 16, 2026 at 6:48 pm

    This class makes this extremely easy. Not sure why I was struggling so bad. Just add these lines and pick up the POST on the back side. Works great. I really like this class. $hide = $_GET[‘nums’]; $form->addElement(new Element_Hidden(“hidden”, “$hide”));

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've started working with SignalR and was trying to figure out when a Hub
Started working on a new application this week that is running the latest rails
I started working on a project which uses Net_URL_Mapper from PEAR (php) as the
I started working on CodeIgniter recently and I'm having some issues with the .htaccess
Ive started working on a product that uses license files. These files need to
I started working on a project in the mid. We are using Zend Framework,
Just started working with .NET and MVC(1). I'm having a problem wherein in my
I started working with linq to SQL several weeks ago. I got really tired
Just started working with Mercurial a few days ago and there's something I don't
Just started working through the Ruby chapter in Mr. Tate's Seven Language in Seven

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.