[eluser]BenInBlack[/eluser]
first off, thanks for the responses.
Controller
Code:
class Pdf extends Controller {
function Pdf()
{
parent::Controller();
}
//the index function is what is called first on instantiation
function index()
{
}
function read() {
$this->load->library('global_class');
$this->load->database();
$this->load->view('pdf_read');
}
function write() {
$this->load->library('global_class');
$this->load->database();
$this->load->view('pdf_write');
}
function form() {
$this->load->library('global_class');
$this->load->database();
$this->load->view('pdf_form');
}
}
pdf_form.php produces a basic form (for now)
Code:
<form action="/index.php/pdf/write" method="POST" enctype="text/plain">
<input type="hidden" name="filename" value="base_form_4"/>
<hr>78 - (Text1) - Tx - (test1)<br>Text1: <input type="text" name="Text1" value="test1"><br><hr>81 - (CheckBox1) - Btn - Yes<br>CheckBox1: <input type="checkbox" name="CheckBox1" value="Yes" checked> Yes<br><hr>83 - (RadioButton1) - Btn - Yes<br>RadioButton1: <input type="radio" name="RadioButton1" value="Yes" checked> Yes<br><hr>84 - (RadioButton1) - Btn - Yes<br>RadioButton1: <input type="radio" name="RadioButton1" value="No"> No<br><hr>85 - (ComboBox1) - Ch [[(1)(item 1)][(2)(item 2)]] / 1,item 1|2,item 2 - (2)<br>ComboBox1: <select name="ComboBox1" size="1" >
<option value="1">item 1</option>
<option value="2" selected>item 2</option>
</select>
<br><hr>86 - (Button1) - Btn - <br>Button1: <input type="checkbox" name="Button1" value="No"> No<br><hr>87 - (Text2) - Tx - (test6)<br>Text2: <input type="text" name="Text2" value="test6"><br><hr>88 - (ListBox1) - Ch [[(1)(List 1)][(2)(List 2)]] / 1,List 1|2,List 2 - (2)<br>ListBox1: <select name="ListBox1" size="5" >
<option value="1">List 1</option>
<option value="2" selected>List 2</option>
</select>
<br><hr>
<input type="submit" name="submit" value="Post Values and Write new PDF"/>
</form>
This form is to post to the write function which calls pdf_write.php
at the top of pdf_write.php is the code to iterate through the $_POST array
but it is empty