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 
how does poll run as htm-page?  XML
Forum Index » Support Forum
Author Message
Anonymous



I have seen the posts before when other had problmens on how to run the poll. Didnt show up etc. ...

Had the same problem but renaming the htm-page to a php-page was the solutuion.

But as many others I need to have my page as an htm-page. What I didn't get is the How-To, not even with the postet tips, so can anyone pls post a link to a working htm-page with a poll. Repeat: HTM-page

If I see how it is embeded in a whole page maybe I get mine running
Thx in advance / Gun
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Why do you need to save your pages as .htm? All servers with PHP installed support the .php extension and the web browser is not concerned what the extension is as they both get sent the same. Using the php extension will make no difference to your site or how it works other than the pages are sent to the PHP processor before being forwarded to the visitor.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



Thx for your advise.

I am linking my pages directy, so a link which points to index.htm will not connect to index.php. (need this to make the sites running on CD) I have an extensiv net of pages and it would be really uncomfortable to change the whole system ... and even then I can't catch external links from visitors pointing to my .htm-files.

New sites certainly I can set up as php. Well, never did before, I always was working with htm-files and Frontoage Editor (not uploding with fp extentions). Well, can you recommend a good editor for php? I was thinking in something fool proofed ...

Regards / Gun
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

You can edit php files with your html editor or any text editor such as notepad. As to your site you could always use a .htaccess file to forward all requests for blah.htm to blah.php.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



Hey thanks for that ... get other things running in the meantime I found a really intesting scene:

voting once, I get the result page with the error:

Warning: Cannot modify header information - headers already sent by (output started at /home/globalv/public_html/indextest.php:2) in /home/globalv/public_html/advancedpoll/poll_cookie.php on line 21

With every time reloading the result page it counts one vote more on the optin where the last vote was ... any idea

Regards / Gun
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

In the file your including the poll get rid of any empty line returns and/or
lines with spaces on before or after your code - before and after...

<?php ... ?>
and
<html> ... </html>

Auron

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum