Lets say i have
index.php
and forms.php
in forms.php i have.\
and Index.php
Is it a bad idea to do the above ????
I have already started with a website which i want to host for my self,
I got coding so much that i didnt realize the amount of lines, the forms.php is already sitting at 1200 Lines.
Do you think this will have a performance impact ?
index.php
and forms.php
in forms.php i have.\
PHP:
<?php
function CallLoginForm()
{
<form>
Username: <input type="text" name="firstname"><br>
Password: <input type="text" name="lastname">
</form>
}
function CallRegisterForm()
{
<form>
Username: <input type="text" name="firstname"><br>
Password: <input type="text" name="lastname">
Confirm Password: <input type="text" name="lastname">
</form>
}
?>
and Index.php
PHP:
<?php
if (!empty($_GET["LOGINFORM"]){CallLoginForm();}
if (!empty($_GET["REGISTERFORM"]){ CallRegisterForm();}
?>
Is it a bad idea to do the above ????
I have already started with a website which i want to host for my self,
I got coding so much that i didnt realize the amount of lines, the forms.php is already sitting at 1200 Lines.
Do you think this will have a performance impact ?