Author |
Message |
01/08/2004 00:41:10
|
wirockstar
Newbie
Joined: 30/07/2004 18:28:00
Messages: 2
Offline
|
I'm really a novice...
I've created my first poll and I've gotten to the point where it says "To embed a poll into a webpage insert the code snippet from below:"
<?php
// Important! You have to include it before your html code
include_once "/u/htdocs/johnso5/pollphp - folder/db/poll_cookie.php";
?>
<html>
<body>
<?php
include_once "/u/htdocs/johnso5/pollphp - folder/db/booth.php";
echo $php_poll->poll_process(4);
?>
</body>
</html>
I'm working in Dreamweaver and I'd like the poll to be in a layer that I've put in the position I like. What do I do now? I tried paste HTML, I tried insert script. Neither worked. I'm sure this is some easy thing but I've never done it before.
Or, this just crossed my mind...am I doing it right but have to upload it first to see it correctly? I've only tried to preview it off my computer...
Help! I need this up by tomorrow!
THANKS!
|
|
01/08/2004 00:51:33
|
Auron
Expert
Joined: 23/06/2003 22:02:17
Messages: 1053
Offline
|
You'll need to upload it to your server to test it.
PHP is a server-side based language so its not rendered or executed like
HTML and JavaScript are in your browser.
Also i've found DreamWeaver
(at least MX 2004) doesn't render the HTML code properly anyway so I usually
view my code in an actual browser. But I think it only does it with old parts
of HTML code that are deprecated.
One last thing make sure the page' extension is .php not .html/.htm
- Auron
|
Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought) |
|
01/08/2004 20:21:39
|
wirockstar
Newbie
Joined: 30/07/2004 18:28:00
Messages: 2
Offline
|
I got it... It was the page extension. Thanks a bunch!
www.johnsonrock.com
So far no problems simply pasting HTML through Dreamweaver...fingers crossed...
|
|
01/08/2004 21:42:33
|
Auron
Expert
Joined: 23/06/2003 22:02:17
Messages: 1053
Offline
|
wirockstar wrote:I got it... It was the page extension. Thanks a bunch!
www.johnsonrock.com
So far no problems simply pasting HTML through Dreamweaver...fingers crossed...
Works fine for me, did a little test, no errors and vote was registered
- Auron
|
Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought) |
|
03/08/2004 00:38:14
|
Anonymous
|
hey its not working for me? why all I see when I upload it is
connect(); $php_poll = new pollcomment(); /* poll */ $php_poll->set_template_set("plain"); $php_poll->set_max_bar_length(125); $php_poll->set_max_bar_height(10); echo $php_poll->view_poll_result(1); /* poll comments */ $php_poll->set_template("poll_comment"); $php_poll->set_comments_per_page(5); $php_poll->set_date_format("d/m/Y H:i"); $php_poll->data_order_by("time","desc"); echo $php_poll->view_poll_comments(1); echo $php_poll->get_comment_pages(1); ?>
What am I doing wrong?
|
|
03/08/2004 01:25:18
|
Auron
Expert
Joined: 23/06/2003 22:02:17
Messages: 1053
Offline
|
Read the posts above if they don't solve your problem, then post again.
_ Auron
|
Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought) |
|
03/08/2004 15:55:09
|
Anonymous
|
is this installed correctly? here check it out
http://www.vwforce.com/polls[/url]
|
|
03/08/2004 16:05:03
|
Auron
Expert
Joined: 23/06/2003 22:02:17
Messages: 1053
Offline
|
Looks like it. It only looks odd coz you've deleted the default polls that were setup at install.
_ Auron
|
Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought) |
|
|