Multiple Pages


Posted on 16th Feb 2014 07:03 pm by admin

Hi. Im very new to php. I'm trying to create a basic login/registration page.

So I have a basic template (with headers and footers and stuff) - main.php. The contents are to be inside a table.

The login/registration pages(login.php, register.php etc) do not have any hearders/footers, and I want them to be inserted inside the table in main.php. I tried doing it with the @include('register.php'), but then these pages have links inside them, which opens separately.

How can I 'embed' the different pages in one single page - main.php?? I hope you understand my question.

Thanks in advance

No comments posted yet

Your Answer:

Login to answer
268 Like 41 Dislike
Previous forums Next forums
Other forums

parse error
Parse error: syntax error, unexpected '[', expecting ')' in /Users/admin/Sites/phptest/array.php on

C - Reading a file into a byte array
Hi,

I'm trying to read a file into a byte array in C. I have to use C as this is for a loadru

Help with Password Encoding/Decoding?
Trying to design a "change password" tool. On my signup code I'm using base64_encode, now

Simple MySQL query...
Hello,
How could I do a mysql query that does this: SELECT * WHERE date/time < 5minutes ag

Inserting a variable in a link
I have this code that I want to insert for my own variable but I have no idea how. This is what I wa

How would I convert this into code using an if statement?
ES equals exam score m equals $mean s equals $total. I already coded my mean and total so I'm not g

highlighting search terms
well, I started this in the regular PHP section, but it no longer fits there. Suffice it to say, I'm

IF Statement & Two Tables With Different Echoes
I'm retrieving two tables in a single query using UNION ALL, like so:

Code: $query = "SE

Protecting forms
Alright, I want to protect some forms of mine from SQL Injections, because I had someone earlier spa

Access database inside of a validation class
Hello,

For quite some time, I have been using functions to validate form input and access the

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash