PDA

View Full Version : Help with template creation


dbembibre
10-06-2004, 10:23 AM
Hi, im new to vbulletin.
I create a custom template/php file to make a registration form.
I have a problem if any required data is missing i need exit from the php code and return to template, but this not work.
A example

<?php

if ($REQUES['do']="blablalbla")
{

$user=$_POST['usuario'];
$address=$_POST['address'];

//My problem here
if ($empty($user))
{
$Message_To_Template="Username is required";
exit;
}

}

eval('$navbar = "' . fetch_template('navbar') . '";');

eval('print_output("' . fetch_template('REG') . '");');

If i put a exit in my code the template never load, i need make a exit or a similar way and permit the fetch_template code

Excuse my broken English

dbembibre
10-07-2004, 06:57 AM
All is ok now.

I create to templates, one with a registration form, and the second to display the errors from the process