Forum Moderators: coopster

Message Too Old, No Replies

Problem including a template in php file

         

nicuz

10:37 pm on Apr 21, 2006 (gmt 0)



I have a user registration area:

new_member.php - script that executes the registration
new_member.htm - contains the html registration form
template.htm - html template

If the user does not fill in all the required fields, new_member.htm is called in new_member.php, with the appropiate error message.

Now, I have problems including my template.htm file.

1.If I include it in the new_member.htm, whenever the user does not fill in the required fileds, the error message are displayed on top of the template.
2.If I include it in the new_member.php, the form is not displayed properly.

Any ideas?

By the way, the script for user registration I am using is this: [phpfreaks.com...]

eelixduppy

4:33 am on Apr 22, 2006 (gmt 0)



Hello...

I believe that im going to need more information to help you out, but this is what im getting so far.

An error message is coming out on top of a template and you want it below that template? (something like that)

If this is the case, then i suggest looking back at your code. Somewhere it's printing the error message before it's including the html template. If you can change this to be the other way then it will work fine.

If this is not the case, then please elaborate.

hope this helps some...

hakre

3:59 pm on Apr 24, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hi nicuz,

i assume that you in your template file the placeholder for the errormessage is in the "wrong" location and you simply need to put it to the according place where you want to have the error-message displayed.