If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Advance Poll and Dreamweaver MX question  XML
Forum Index » Support Forum
Author Message
Anonymous



my poll is running well.my only problem is that i cannot embed it in a table.in such a way that when i w load my page i want to see the poll at the right side on my page.i tried to make a table andinsert the code it still does not work. is there a sort of special way to insert the code using dreamweaver mx to getthe script running?

<?php
include_once "c:/program files/apache group/apache/htdocs/poll/booth.php";
echo $php_poll->poll_process(x); // x = Poll ID
?>

i save this file as vote.php.when i access the vote.php on my webserver it runs perfectly but when u embed it on a html file it could not work.

can sambady help me with this. how did u embed the poll on a table or on a html file maybe.plsssssssssss help


thanks
dunnma
Beginner

Joined: 13/08/2002 23:09:49
Messages: 10
Offline

I am not sure what you mean by embed it in an html file. It is a php script, and as such it has to be embedded in a page that is named something.php. You can still have html present. Just create a table in dreamweaver mx and align it to the right (use the property inspector). Then put that snipit of code into it and it will work fine. You could also do it in a layer.

HTH

Matt
Anonymous



Which means that your server can recognise .php as php files but not html. The solution lies in naming your files to .php, which will then work.
Alternatively you can get your server to recognise php codes in html by changing the mime types.
Anonymous



how do i change the mim types so that my server can recognize php code in a html file
Anonymous



Im guessing that your server does not have acess to php and you think it's possible that if you just name ur files with .html but still use php in it, it may work. Sorry, but there's no way around it. You have to have php installed in the server in order for php to work in any type of format.
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum