php require seems to not include css files - php

I'm working on a project where I am learning the importance of having a header file with a nav and including that header file in other files so that my nav will display the same in all other vies.
The problem I'm having is the css that I linked to my header file is not being applied to a certain page... I think it has to do with file paths but I'm not sure. Can someone take a look at what I have and give me some insight? Thanks!
css not being included
my file structure
Here is my header file:
<?php session_start();
$_SESSION['DOCUMENT_ROOT'] = 'login_system/';
?>
<!DOCTYPE html>
<html>
<head>
<link href="css/bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/stylesheet.css">
<script scr="scripts/main.js"></script>
<title>Login page</title>
</head>
<body>
<div class="header">
<div class="nav">
<ul>
<li>Home</li>
<?php
if (isset($_SESSION['id']))
echo "<form action='includes/logout.php'>
<button>Log out</button>
</form>";
else
echo "<form action='includes/login.php' method='POST'>
<input type='text' name='username' placeholder='username'>
<input type='password' name='password' placeholder='Password'>
<button class='button-submit' type='submit'>Login</button>
</form>";
?>
<li>Sign up</li>
</ul>
</div>
</div>
and here is my signup code:
<?php require '../../includes/header.php'; ?>
<div class"container">
<?php
if (isset($_SESSION['id']))
echo 'You are already logged in!';
else
echo "<form action='../../includes/signup.php' method='POST'>
<label for='firstname'>First name:</label>
<input type='text' name='firstname' placeholder='First name'><br>
<label for='lastname'>Last name:</label>
<input type='text' name='lastname' placeholder='Last name'><br>
<label for='username'>Username:</label>
<input type='text' name='username' placeholder='username'><br>
<label for='lastname'>Desired Password:</label>
<input type='password' name='password' placeholder='Password'><br>
<button type='submit'>Sign up</button>
</form>";
?>
</div>
</body>
</html>

Related

Form not submitting , Its submit in nonwww.domain when it come with www it only reload the page

I have a form on my website it works fine with nonwww.domain. if I try with www.domain in the same site
It won't go, Its keep on rotating after captcha, refresh page with new captcha and filled form is there.
Help me solve this error
I had this form earlier its work fine in other domain
This domain is under yahoo hosting
And
I have not any reply from them
Please find the code
Is this server error
<link rel="STYLESHEET" type="text/css" href="contact.css" />
<script type='text/javascript' src='scripts/gen_validatorv31.js'></script>
<script type='text/javascript' src='scripts/fg_captcha_validator.js'></script>
<!-- Form Code Start -->
<form id='contactus' action='<?php echo $formproc->GetSelfScript(); ?>' method='post' enctype="multipart/form-data" accept-charset='UTF-8'>
<fieldset >
<legend>Contact us</legend>
<input type='hidden' name='submitted' id='submitted' value='1'/>
<input type='hidden' name='<?php echo $formproc->GetFormIDInputName(); ?>' value='<?php echo $formproc->GetFormIDInputValue(); ?>'/>
<input type='text' class='spmhidip' name='<?php echo $formproc->GetSpamTrapInputName(); ?>' />
<div class='short_explanation'>* required fields</div>
<div><span class='error'><?php echo $formproc->GetErrorMessage(); ?></span></div>
<div class='container'>
<label for='name' >Your Full Name*: </label><br/>
<input type='text' name='name' id='name' value='<?php echo $formproc->SafeDisplay('name') ?>' maxlength="50" /><br/>
<span id='contactus_name_errorloc' class='error'></span>
</div>
<div class='container'>
<label for='email' >Email Address*:</label><br/>
<input type='text' name='email' id='email' value='<?php echo $formproc->SafeDisplay('email') ?>' maxlength="50" /><br/>
<span id='contactus_email_errorloc' class='error'></span>
</div>
<div class='container'>
<label for='message' >Message:</label><br/>
<span id='contactus_message_errorloc' class='error'></span>
<textarea rows="10" cols="50" name='message' id='message'><?php echo $formproc->SafeDisplay('message') ?></textarea>
</div>
<div class='container'>
<label for='photo' >Upload your photo:</label><br/>
<input type="file" name='photo' id='photo' /><br/>
<span id='contactus_photo_errorloc' class='error'></span>
</div>
<div class='container'>
<div><img alt='Captcha image' src='show-captcha.php?rand=1' id='scaptcha_img' /></div>
<label for='scaptcha' >Enter the code above here:</label>
<input type='text' name='scaptcha' id='scaptcha' maxlength="10" /><br/>
<span id='contactus_scaptcha_errorloc' class='error'></span>
<div class='short_explanation'>Can't read the image?
<a href='javascript: refresh_captcha_img();'>Click here to refresh</a>.</div>
</div>
<div class='container'>
<input type='submit' name='Submit' value='Submit' />
</div>
</fieldset>
</form>
<!-- client-side Form Validations:
Uses the excellent form validation script from JavaScript-coder.com-->
<script type='text/javascript'>
// <![CDATA[
var frmvalidator = new Validator("contactus");
frmvalidator.EnableOnPageErrorDisplay();
frmvalidator.EnableMsgsTogether();
frmvalidator.addValidation("name","req","Please provide your name");
frmvalidator.addValidation("email","req","Please provide your email address");
frmvalidator.addValidation("email","email","Please provide a valid email address");
frmvalidator.addValidation("message","maxlen=2048","The message is too long!(more than 2KB!)");
frmvalidator.addValidation("photo","file_extn=jpg;jpeg;gif;png;bmp","Upload images only. Supported file types are: jpg,gif,png,bmp");
frmvalidator.addValidation("scaptcha","req","Please enter the code in the image above");
document.forms['contactus'].scaptcha.validator
= new FG_CaptchaValidator(document.forms['contactus'].scaptcha,
document.images['scaptcha_img']);
function SCaptcha_Validate()
{
return document.forms['contactus'].scaptcha.validator.validate();
}
frmvalidator.setAddnlValidationFunction("SCaptcha_Validate");
function refresh_captcha_img()
{
var img = document.images['scaptcha_img'];
img.src = img.src.substring(0,img.src.lastIndexOf("?")) + "?rand="+Math.random()*1000;
}
// ]]>
</script>

Login script without MySQL

I don't know why this isn't working, I do not want to use MySQL. I just want to create a simple username and password that if correct takes the user to "process_login.php" and if not takes them to a random site.
"<!doctype html>
<?php
<head>
<title>"Chris's Crispy Chips and Cuccumber, Cheddar Cheese, and Carravan of Convienece located in Canada"</title>
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
</head>
<body>
<div class='containter'>
<div class="login">
<h2>Welcome to Le ScottsDoodle</h2>
<p>
<input type='text' name='myusername' value='' placeholder='Username' $user = ('admin')>
<input type='password' name='mypassword' value='' placeholder='Password' $pass = ('password')>
</p>
<p class='remember_me'>
<input type='checkbox' name='remember_me' id='remember_me'>
Remember me :*
</p>
<p class='submit'><input type='submit' onClick="SubmitForm(
if($user == "admin" && $pass == "password") {
header('Location: process_login.php');
} else {
header('Location: aehgufeih.php');
}
)" name='Login' value='Login'></p>
</form>
</div>
</form>
</div>
</body>
This should achieve what you're trying to do.
<?php
#$user = $_POST['myusername'];
#$pass = $_POST['mypassword'];
if(isset($_POST['submit'])) {
if($user == "admin" && $pass == "password") {
header('Location: process_login.php');
} else {
header('Location: aehgufeih.php');
}
}
?>
<!doctype html>
<head>
<title>"Chris's Crispy Chips and Cuccumber, Cheddar Cheese, and Carravan of Convienece located in Canada"</title>
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
</head>
<body>
<div class='containter'>
<div class="login">
<h2>Welcome to Le ScottsDoodle</h2>
<form method="post" action="">
<p>
<input type='text' name='myusername' value='' placeholder='Username'>
<input type='password' name='mypassword' value='' placeholder='Password'>
</p>
<p class='remember_me'>
<input type='checkbox' name='remember_me' id='remember_me'>
Remember me :*
</p>
<p class='submit'><input type='submit' name="submit"></p>
</form>
</div>
</div>
</body>

products don't get added to shopping cart

I'm working on onlineshop.php page that is supposed to display forms, each form has a product with"add to cart button". The products get displayed, but the problem is that the product i choose doesn't get added to the cart. i don't know if it's a problem in the query or the code itself.
onlineshop.php:
<?php
ini_set('display_errors',1);
error_reporting(E_ALL);
include('connection.php');
if ( isSet($_POST['Pro_ID'], $_POST['Price'] , $_POST['Pro_Name'] ) )
{
$qry="INSERT INTO shopping_cart(Cart_Name,Pro_Name,Pro_ID,Price) VALUES ( 'dzfgtdfxdf','$_POST[Pro_Name]','$_POST[Pro_ID]' , '$_POST[Price]' ) ";
$qry = 'SELECT * FROM product' ;
}
else
$qry = 'SELECT * FROM product' ;
//Run QUERY
$result = mysql_query ($qry);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Online Shop</title>
<!-- Custom CSS -->
<link href="css/css.css" rel="stylesheet">
<!-- Fonts -->
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Josefin+Slab:100,300,400,600,700,100italic,300italic,400italic,600italic,700italic" rel="stylesheet" type="text/css">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body scroll="no" style="overflow: hidden">
<div class="wrapper">
<div style="z-index:10;float:right;top:20px; position: relative;font-size:10px;"> <img src="cartt.png" alt="ٍاخححهىل }شقف" style="width:40px;height:40px"><br/>Shopping Cart</div>
<div class="logo"><img src="logo.png" alt="logo" height="162px"width="800px" style="border-style:none" title="Home"/></div>
<!-- Navigation -->
<nav>
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<!-- Collect the nav links, forms, and other content for toggling -->
<ul id="nav">
<li>
Home
</li>
<li class="sousMenu"><a>Book/Cancel an appointment</a>
<ul>
<li>Book an appointment
</li>
<li>Cancel an appointment
</li>
</ul>
</li>
<li>
Online Shop
</li>
<li>
View Catalogue
</li>
<li>
About us
</li>
<li>
Contact us
</li>
<li>
Manager log-in
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
<!-- /.container -->
</nav>
<div id="boxcontainer">
<div class="contentboxes1">
<div class="row">
<div class="box">
<div class="col-lg-12">
<h2 style="text-align:center; color:#ab4b4b;">Online Shop</h2>
<hr class="visible-xs"> <br/>
<center><div style="left:100px;display:inline;"><select name="categories"
<option value="hair">Hair products</option>
<option value="makeup">Makeup</option>
<option value="nail">Nail Products</option>
<option value="skin">Skin Care</option>
</select></div>
<form action="demo_form.asp"style="display:inline;" >
<input type="search" name="searchSpecilist">
<input type="submit" value="Search" style="float:none; width: 70px; height: 20px;">
</form> <br><br><br></center>
<?php
if($result) {
$did = 0;
Print " <table style='width:100%'>";
while($info=mysql_fetch_array($result))
{
if($did==0){
Print"
<tr>
<td>
<form action='' method='post' enctype='multipart/form-data' style='display:inline;' action='' >
<figure>
<img src='B7Brush.jpg' alt='The Pulpit Rock' width='130' height='130' style='left:00px;top:00px; '>
<figcaption style='text-align:center;'><b>".$info['Pro_Name']."</b><br/>".$info['Price']."<p style='color:green;'>".$info['Availability']."</p><p style='font-size:13px;display:inline'>Quantity:</p>
<input type='number' name='quantity' min='1' max='10' style='width:3em;'></figcaption>
</figure>
<input type='hidden' name='Pro_ID' value='".$info['Pro_ID']."' />
<input type='hidden' name='Price' value='".$info['Price']."' />
<input type='hidden' name='Pro_ID' value='".$info['Pro_Name']."' />
<input type='hidden' name='Availability' value='".$info['Availability']."' />
<input name='button1' type='submit' value='Add To Cart' style='width:8em; ' />
</form>
</td> ";
$did++;
continue; }
if($did==1){
Print "
<td>
<form action='' method='post' enctype='multipart/form-data' style='display:inline;' action='' >
<figure>
<img src='eye.jpg' alt='The Pulpit Rock' width='130' height='130' style='left:00px;top:00px; '>
<figcaption style='text-align:center;'><b>".$info['Pro_Name']."</b><br/>".$info['Price']."<p style='color:green;'>".$info['Availability']."</p><p style='font-size:13px;display:inline'>Quantity:</p>
<input type='number' name='quantity' min='1' max='10' style='width:3em;'></figcaption>
</figure>
<input type='hidden' name='Pro_ID' value='".$info['Pro_ID']."' />
<input type='hidden' name='Price' value='".$info['Price']."' />
<input type='hidden' name='Pro_ID' value='".$info['Pro_Name']."' />
<input type='hidden' name='Availability' value='".$info['Availability']."' />
<input name='button1' type='submit' value='Add To Cart' style='width:8em; ' />
</form>
</td>";
$did++;
continue; }
if($did==2){
Print"
<td>
<form action='' method='post' enctype='multipart/form-data' style='display:inline;' action='' >
<figure>
<img src='korres.jpg' alt='The Pulpit Rock' width='130' height='130' style='left:00px;top:00px; '>
<figcaption style='text-align:center;'><b>".$info['Pro_Name']."</b><br/>".$info['Price']."<p style='color:green;'>".$info['Availability']."</p><p style='font-size:13px;display:inline'>Quantity:</p>
<input type='number' name='quantity' min='1' max='10' style='width:3em;'></figcaption>
</figure>
<input type='hidden' name='Pro_ID' value='".$info['Pro_ID']."' />
<input type='hidden' name='Price' value='".$info['Price']."' />
<input type='hidden' name='Pro_ID' value='".$info['Pro_Name']."' />
<input type='hidden' name='Availability' value='".$info['Availability']."' />
<input name='button1' type='submit' value='Add To Cart' style='width:8em; ' />
</form>
</td>";
$did++;
continue; }
if($did==3){
Print"
<td>
<form action='' method='post' enctype='multipart/form-data' style='display:inline;' action='' >
<figure>
<img src='self.jpg' alt='The Pulpit Rock' width='130' height='130' style='left:00px;top:00px; '>
<figcaption style='text-align:center;'><b>".$info['Pro_Name']."</b><br/>".$info['Price']."<p style='color:green;'>".$info['Availability']."</p><p style='font-size:13px;display:inline'>Quantity:</p>
<input type='number' name='quantity' min='1' max='10' style='width:3em;'></figcaption>
</figure>
<input type='hidden' name='Pro_ID' value='".$info['Pro_ID']."' />
<input type='hidden' name='Price' value='".$info['Price']."' />
<input type='hidden' name='Pro_ID' value='".$info['Pro_Name']."' />
<input type='hidden' name='Availability' value='".$info['Availability']."' />
<input name='button1' type='submit' value='Add To Cart' style='width:8em; ' />
</form>
</td> </tr>";
$did=0;
}
}
Print " </table>";
}
else echo "Your cart is empty";
?>
</div>
</div>
</div>
<div style="font-size:8px;">
<p style="display:inline;">Copyright © SOFTWARE II KSU 2014. <br>Sitemap </p> <div style="z-index:10;float:right;"> <img src="img/instagram.png" alt="instagram" style="width:30px;height:30px"> <img src="img/facebook.png" alt="facebook" style="width:30px;height:30px"> <img src="img/twitter.png" alt="twitter" style="width:30px;height:30px"></div>
</div>
</div>
</div>
<!-- /.container -->
</div>
</body>
</html>
</html>
<?php
// close database connection
mysql_close ($con);
?>
change
if ( isSet
to
if ( isset
Removing the capital letter and replacing it with lowercase
It seems that you compose the INSERT query but you don't run it. Use function mysql_query() to send the query to the MySQL server to be executed.
Looks like you are overwriting the $qry variable before you execute the INSERT.
So you are never inserting the data into the table, you are just selecting it.
Run the INSERT before you SELECT and it should work.
Try this:
<?php
ini_set('display_errors',1);
error_reporting(E_ALL);
include('connection.php');
if ( isset($_POST['Pro_ID'], $_POST['Price'] , $_POST['Pro_Name'] ) ) {
$qry="INSERT INTO shopping_cart(Cart_Name,Pro_Name,Pro_ID,Price) VALUES ( 'dzfgtdfxdf','$_POST[Pro_Name]','$_POST[Pro_ID]' , '$_POST[Price]' ) ";
// 1) Run your SQL
mysql_query($qry);
}
// Actually, You don't need ELSE block statement, because this lines of code repeats in IF block, and in ELSE block.
$qry = 'SELECT * FROM product' ;
//Run QUERY
$result = mysql_query ($qry);
?>

PHP Login Page Redirect

this code is incomplete and I need it to redirect to a page called mainpage.php with hardcoded information for the username and password. Here's the code.
<?php
session_start();
$username="user";
$password="123";
if($_POST['username'] == $username && $_POST['password'] == $password)
?>
<html>
<head>
</head>
<body>
<div style='text-align:center'>
<h3>Welcome To Kontak</h3>
</div>
<hr /><br />
<form id='login' action="" method='post' accept-charset='UTF-8'>
<fieldset style="width:550px">
<legend>Admin Login</legend>
<input type='hidden' name='submitted' id='submitted' value='1'/>
<label for='username' >UserName:</label>
<input type='text' name='username' id='username' maxlength="50" />
<label for='password' >Password:</label>
<input type='password' name='password' id='password' maxlength="50" />
<input type='submit' name='submit' value='Submit' />
</fieldset>
</form>
</body>
</html>
I think you are looking for this:
if($_POST['username'] == $username && $_POST['password'] == $password)
header( 'Location: mainpage.php' );
?>
so the header will take to mainpage.php when if condition is satisfied.
--Vijay
Have to start and end the if block
<?php
session_start();
$username="user";
$password="123";
if(isset($_POST['username']) && $_POST['username'] == $username && $_POST['password'] == $password)
{
header("Location: your_page.php");
}
else
{
?>
<html>
<head>
</head>
<body>
<div style='text-align:center'>
<h3>Welcome To Kontak</h3>
</div>
<hr /><br />
<form id='login' action="" method='post' accept-charset='UTF-8'>
<fieldset style="width:550px">
<legend>Admin Login</legend>
<input type='hidden' name='submitted' id='submitted' value='1'/>
<label for='username' >UserName:</label>
<input type='text' name='username' id='username' maxlength="50" />
<label for='password' >Password:</label>
<input type='password' name='password' id='password' maxlength="50" />
<input type='submit' name='submit' value='Submit' />
</fieldset>
</form>
</body>
</html>
<?php
}
?>
Change 'header("Location: your_page.php");' to 'header("Location: mainpage.php");'

Firephp logging with multiple classes and dependencies

I am writing a rather large PHP application and I've come to a point where I would like some debugging output. I've successfully installed FireBug and FirePHP and I've managed to output one line of text to the console.
Here is the problem now. I have a php file called Register.php which contains basically code only to display the view and submit the form. This file calls a function in the SiteViewModel.php class to do the actually background work in registering the user. The SiteViewModel.php also calls other php files to connect to the DB and perform checks/inserts.
If I put the debugging line in the SiteViewModel.php file constructor I get an output to the Firebug console. If I put any other lines anywhere else I get nothing logged.
Some code
Register.php:
<?php
require_once("/xampp/htdocs/SiteConfig.php");
if(isset($_POST['submitted']))
{
if($rlrpgSite->RegisterUser())
{
$rlrpgSite->RedirectToURL("registrationthanks.php");
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
<title>Register</title>
<link rel="STYLESHEET" type="text/css" href="../style/fg_membersite.css" />
<script type='text/javascript' src='../scripts/gen_validatorv31.js'></script>
<link rel="STYLESHEET" type="text/css" href="../style/pwdwidget.css" />
<script src="../scripts/pwdwidget.js" type="text/javascript"></script>
</head>
<body>
<!-- Form Code Start -->
<div id='fg_membersite'>
<form id='register' action='<?php echo $rlrpgSite->GetSelfScript(); ?>' method='post' accept-charset='UTF-8'>
<fieldset >
<legend>Register</legend>
<input type='hidden' name='submitted' id='submitted' value='1'/>
<div class='short_explanation'>* required fields</div>
<input type='text' class='spmhidip' name='<?php echo $rlrpgSite->GetSpamTrapInputName(); ?>' />
<div><span class='error'><?php echo $rlrpgSite->GetErrorMessage(); ?></span></div>
<div class='container'>
<label for='firstname' >First Name*: </label><br/>
<input type='text' name='FirstName' id='FirstName' value='<?php echo $rlrpgSite->SafeDisplay('FirstName') ?>' maxlength="100" /><br/>
<span id='register_firstname_errorloc' class='error'></span>
</div>
<div class='container'>
<label for='lastname' >Last Name*: </label><br/>
<input type='text' name='LastName' id='LastName' value='<?php echo $rlrpgSite->SafeDisplay('LastName') ?>' maxlength="100" /><br/>
<span id='register_lastname_errorloc' class='error'></span>
</div>
<div class='container'>
<label for='email' >Email Address*:</label><br/>
<input type='text' name='EmailAddress' id='EmailAddress' value='<?php echo $rlrpgSite->SafeDisplay('EmailAddress') ?>' maxlength="512" /><br/>
<span id='register_email_errorloc' class='error'></span>
</div>
<div class='container'>
<label for='username' >UserName*:</label><br/>
<input type='text' name='UserName' id='UserName' value='<?php echo $rlrpgSite->SafeDisplay('UserName') ?>' maxlength="255" /><br/>
<span id='register_username_errorloc' class='error'></span>
</div>
<div class='container' style='height:80px;'>
<label for='Password' >Password*:</label><br/>
<div class='pwdwidgetdiv' id='thepwddiv' ></div>
<noscript>
<input type='password' name='Password' id='Password' maxlength="50" />
</noscript>
<div id='register_password_errorloc' class='error' style='clear:both'></div>
</div>
<div class='container'>
<input type='submit' name='Submit' value='Submit' />
</div>
</fieldset>
</form>
<!-- client-side Form Validations:
Uses the excellent form validation script from JavaScript-coder.com-->
<script type='text/javascript'>
// <![CDATA[
var pwdwidget = new PasswordWidget('thepwddiv','Password');
pwdwidget.MakePWDWidget();
var frmvalidator = new Validator("register");
frmvalidator.EnableOnPageErrorDisplay();
frmvalidator.EnableMsgsTogether();
frmvalidator.addValidation("firstname","req","Please provide your name");
frmvalidator.addValidation("lastname","req","Please provide your name");
frmvalidator.addValidation("email","req","Please provide your email address");
frmvalidator.addValidation("email","email","Please provide a valid email address");
frmvalidator.addValidation("username","req","Please provide a username");
frmvalidator.addValidation("Password","req","Please provide a password");
// ]]>
</script>
<!--
Form Code End (see html-form-guide.com for more info.)
-->
</body>
</html>
SiteConfig.php:
<?php
require_once('SiteViewModel.php');
$rlrpgSite = new siteviewmodel();
$rlrpgSite->SetWebsiteName('localhost.com');
$rlrpgSite->SetAdminEmail('rlrpg#localhost.com');
$rlrpgSite->SetRandomKey('Hng2XxIdNfp8EwO');
?>
SiteViewModel.php:
<?php
class siteviewmodel
{
...
function siteviewmodel()
{
ob_start();
fb("Instantiating");
//This works
}
RegistUser()
{
ob_start();
fb("Registering");
//doesn't work
}
}
?>

Categories