Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-06-2004, 09:23 AM
dbembibre's Avatar
dbembibre dbembibre is offline
 
Join Date: Sep 2004
Location: Madrid (Spain)
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Help with template creation

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
Reply With Quote
  #2  
Old 10-07-2004, 05:57 AM
dbembibre's Avatar
dbembibre dbembibre is offline
 
Join Date: Sep 2004
Location: Madrid (Spain)
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All is ok now.

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:35 AM.


Powered by vBulletin® Version 3.9.0
Copyright ©2000 - 2017, vBulletin Solutions Inc.