Welcome Guest, Not a member yet? Register   Sign In
IF as Page
#1

Hello,
in my page I used this code to put several pages into one file.
This was very useful and would like to incorporate this in this framework as well.
But how is the URL address to call the content "edit"?

PHP Code:
<?php
    
if(isset($_GET["action"]))
        {
            
$action $_GET["action"];
        }
    else
        {
            
$action "";
        }
        
    if (
$action == "")
        {
?>
hallo
<?php
        
}
    if (
$action == "edit")
        {
?>
du da
<?php
        
}
?>
Reply
#2

The questions you have been asking indicate that you have a severe lack of knowledge as to how CodeIgniter works. Before doing anything else, read this:

https://www.codeigniter.com/user_guide/
Reply
#3

(This post was last modified: 09-18-2017, 11:04 AM by PaulD.)

Apart from skunkbad's great advice above, why would you use a GET to edit a record?
Reply
#4

Looks like PHP code getting JavaScript
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB