CreateFormStart Issue
Posted: Thu May 22, 2008 3:27 am
Hi
I am a newbie using CMS Made Simple.
I need to create a form which will allow administrators to upload certain files needed for processing data to the front end users.
I am trying to create a module using the module tutorial on the site and have a problem
I am trying to use the CreateFormStart method to create the form and call an action.php file (in this case action.do_upload.php file).
The code I was using is fairly simple as I was just trying to see if the CreateFormStart actually calls the action file on a button submit which will return nothing but an echo telling me that the file has been successfully called.
the code I'm using in the module.php file is as follows:
The code of my action.do_upload.php file is as follows:
The problem I am having is on submit the page is not being called and all I can see is the module header in the admin section.
Nothing is being echoed back to me.
Can somebody please guide me on what I am doing wrong?
I am a newbie using CMS Made Simple.
I need to create a form which will allow administrators to upload certain files needed for processing data to the front end users.
I am trying to create a module using the module tutorial on the site and have a problem
I am trying to use the CreateFormStart method to create the form and call an action.php file (in this case action.do_upload.php file).
The code I was using is fairly simple as I was just trying to see if the CreateFormStart actually calls the action file on a button submit which will return nothing but an echo telling me that the file has been successfully called.
the code I'm using in the module.php file is as follows:
Code: Select all
echo $this->CreateFormStart($id,"do_upload");
echo $this->CreateInputSubmit($id,"submit","Upload File");
echo $this->CreateFormEnd();
Code: Select all
<?
echo ("This is here");
?>
The problem I am having is on submit the page is not being called and all I can see is the module header in the admin section.
Nothing is being echoed back to me.
Can somebody please guide me on what I am doing wrong?