PDA

View Full Version : need help: custom template/php page with php doing all the logic & page output


moleculo
10-16-2009, 05:15 AM
First, let me say that this is my first attempt to build a custom page and code within vbulletin that contains more than basic html or javascript within the custom template.

I am trying to build a custom php based page that can be called from a standard HTML form submit method, where the value input to the field is passed to the custom php page for complete processing and display output. Of course, I want the custom php page to be wrapped as a vbulletin page.

First, I used the tutorial here:
https://vborg.vbsupport.ru/showthread.php?t=62164

Doing it this way doesn't seem to allow me to pass a GET method parameter to the custom PHP page to then base all of the rest of the PHP code off of. Another issue is that part of the code executing in the PHP file is javascript, which doesn't seem to work, either. Can anyone point me in the right direction on these issues?

I would post the code I'm trying to execute here, but I'd rather not post it publicly for various reasons. I'll gladly send it via email if someone is willing to lend a hand. The PHP code is fairly short.

Lynne
10-16-2009, 02:45 PM
Sure you can pass a variable to that page. How about you going about that? You may want to look at this article - Using the vBulletin Input Cleaner (https://vborg.vbsupport.ru/showthread.php?t=119372&highlight=cleaner).