Chi Kien Uong
Geranienstraße 30
71034 Böblingen
Deutschland / Germany
|
If you are not registered or logged in, you may still use these forums but with limited features.
Show recent topics
|
|
|
Author |
Message |
22/08/2003 12:28:05
|
Anonymous
|
Hi
my webpage is maded of 2 includes(header and footer)
The poll is included in the footer. but the action goes to footer.php
how can i change in the sources the action? i mean i then put in a different url instead $self.
i did some searching myself, starting in poll_ssi.php.
i did find some, but after change it still keeps the same.
can someone help me?
thanx in advance
cheers!
|
|
22/08/2003 12:39:19
|
Anonymous
|
ow forgot to have detals inside
i use the poll
and with action i mean. that tag in the form to send the script to.
cheers!
|
|
22/08/2003 17:22:47
|
egeurts
Beginner
Joined: 12/08/2003 09:38:19
Messages: 44
Location: Groningen, Netherlands
Offline
|
I've read your questions a number of times, but I have to say I have no idea what you mean.
Please try to phrase the question in a more understandable way, for example in real English.
Also, include a URL that people could look at to see what the problem is.
|
Opening message voids warranty.
When I'm not surfing the web, I'm probably walking in the mountains.
See for yourself! www.corsica-hiking.com |
|
22/08/2003 18:48:36
|
Anonymous
|
i'm trying
My site is build is build in php. using 3 files to make 1 page.
at the top the header(header.php) in the middle (content.php) and at the end (footer.php)
this is all included in 1 file.
i put the include code of the poll in the footer, it showing fine, but have trouble while voting. because the code is included in the footer, the page will redirect (to show results) then to footer.php. footer.php is a part of the page and looks messy when not complete with all the other files i mentioned above.
anyway, so i was looking for how-to change the form.
this can't be done in de templates, cuz such code isn't placed there.
So i started looking in each file that compares to that code.
<form name="form1" method="post" action="">
for example.
i did found such code in poll_ssi.php
$poll_html = eregi_replace("action=\"$HTTP_SERVER_VARS[DOCUMENT_URI]\"", "action=\"$PHP_SELF?poll_ref=$HTTP_SERVER_VARS[DOCUMENT_URI]\"", "$poll_html");
I did changed the [action=\"] part to my site's index(full url)
but after change it still redirects to footer.php
i am thinking i am editing the wrong files, need some help with it.
its only to change the [action=\"] of a form.
to demonstrate: http://gallery.cncinsight.com/ZeroHour.php
look at the right and u will see it, take a vote, and u will redirected to a not valid page. when looking in the url, u will notice footer.php
hope this is much clear, then my last post
thanx in advance, cheers!
|
|
27/08/2003 17:04:20
|
Anonymous
|
anyone?
this can be solved right?
pleazz some help
|
|
27/08/2003 17:36:55
|
egeurts
Beginner
Joined: 12/08/2003 09:38:19
Messages: 44
Location: Groningen, Netherlands
Offline
|
patience, patience, you're not the only one we're trying to help!
|
Opening message voids warranty.
When I'm not surfing the web, I'm probably walking in the mountains.
See for yourself! www.corsica-hiking.com |
|
28/08/2003 08:32:27
|
egeurts
Beginner
Joined: 12/08/2003 09:38:19
Messages: 44
Location: Groningen, Netherlands
Offline
|
I'm giving you an example, based on how I've setup my guestbook, but the same technique can be used for any kind of 'small' application written in a script language like PHP.
In my case, I've setup the guestbook in a directory of it's own on the website. The directory is called {domain-name.com}/guestbook/.
In a different part of the site, I have a web page, called gastenboek.htm (it's a site in Dutch, gastenboek means guestbook).
Here is a small piece of code from this gastenboek.htm:
As you can see, I've given the Iframe a name (Guestbook), and some visual settings such as margins, border and alignment. Inside the Iframe, the initial page of the guestbook is called up, throught the src attribute.
This way, the guestbook is operating within the Iframe. You might say the guestbook is completely unaware of the fact it's running in an Iframe, it might as well be running on it's own in a separate browser window. Whatever happens inside the Iframe, the rest of the site around the Iframe is untouched.
So: you don't need to use the SSI way of calling the poll. Just have your page as you were used to, but put an Iframe in it at the right spot, with the right dimensions. Inside this iframe, you can call the .php program with the poll in it.
Here is an copy of the source code of a poll I have running in an Iframe:
Hope this helps...
|
Opening message voids warranty.
When I'm not surfing the web, I'm probably walking in the mountains.
See for yourself! www.corsica-hiking.com |
|
03/09/2003 22:11:41
|
Anonymous
|
egeurts wrote:I'm giving you an example, based on how I've setup my guestbook, but the same technique can be used for any kind of 'small' application written in a script language like PHP.
In my case, I've setup the guestbook in a directory of it's own on the website. The directory is called {domain-name.com}/guestbook/.
In a different part of the site, I have a web page, called gastenboek.htm (it's a site in Dutch, gastenboek means guestbook).
Here is a small piece of code from this gastenboek.htm:
As you can see, I've given the Iframe a name (Guestbook), and some visual settings such as margins, border and alignment. Inside the Iframe, the initial page of the guestbook is called up, throught the src attribute.
This way, the guestbook is operating within the Iframe. You might say the guestbook is completely unaware of the fact it's running in an Iframe, it might as well be running on it's own in a separate browser window. Whatever happens inside the Iframe, the rest of the site around the Iframe is untouched.
So: you don't need to use the SSI way of calling the poll. Just have your page as you were used to, but put an Iframe in it at the right spot, with the right dimensions. Inside this iframe, you can call the .php program with the poll in it.
Here is an copy of the source code of a poll I have running in an Iframe:
Hope this helps...
Just want to say Thanks for ur time to write this! It helped me and a can guess a lots of more ppl.
Just wanna add a little... when i was doing a calendar on my site i use ur help to get it working. But i did on a little other way to get it work.
The Iframe where u want it:
<iframe src="http://localhost/calendar.php"
marginwidth="0" marginheight="0" height="200" width="200"
name="eventcal" align="left" border="0" frameborder="0">
</iframe>
and the calendar.php file:
<html>
<body>
<?
include_once "d:/appserv/www/eventcal/cl_files/calendar.php";
show_calendar(Kickfjader);
?>
</body>
</html>
Have FUN!
|
|
|
|
|
|
Based on the open source JForum
|