Thread View: borland.public.cppbuilder.internet.web
6 messages
6 total messages
Started by yeti
Thu, 20 Jan 2005 21:15
Simple CGI-question: URL in generated HTML-page
Author: yeti
Date: Thu, 20 Jan 2005 21:15
Date: Thu, 20 Jan 2005 21:15
18 lines
1493 bytes
1493 bytes
Hi, My CGI-program, created with C++, responds to a user input-form, creating a dynamically modified HTML-page, which is shown correctly in the webbrowser. This all works as expected. However, lately I tried to add to this HTML-page a (static) user-selectable URL, as a means to redirect to another location (e.g. www.borland.com); when used from the web-browser the redirection is incorrect; it seems to try to access an executable in the CGI-server- -directory instead. I did not manage to find the correct tag to use for this case. I tried some variations of "href='. Any advice whould be nice.
Re: Simple CGI-question: URL in generated HTML-page
Author: Hans Galema
Date: Thu, 20 Jan 2005 15:08
Date: Thu, 20 Jan 2005 15:08
23 lines
1563 bytes
1563 bytes
yeti wrote: > However, lately I tried to add to this HTML-page a (static) > user-selectable URL, as a means to redirect to another > location (e.g. www.borland.com); when used from the > web-browser the redirection is incorrect; it seems > to try to access an executable in the CGI-server- > -directory instead. > > I did not manage to find the correct tag to use > for this case. I tried some variations of "href='. Well you omitted the variations in the reference. Apparently you have something like: href="www.borland.com" But you have to use: href="http://www.borland.com" Hans.
Re: Simple CGI-question: URL in generated HTML-page
Author: Hans Galema
Date: Thu, 20 Jan 2005 17:09
Date: Thu, 20 Jan 2005 17:09
30 lines
1985 bytes
1985 bytes
yeti wrote: >> href="http://www.borland.com" > I am glad to hear that the tag used per se > was correct. There was no mentioning of a tag. A complete link using the anchor tag would have looked like: <a href="http://www.borland.com">Borland</a> > I actually did use this second form, along > with a variant with added url$, but both didn't > work (when the page was generated dynamically). It should not matter if it is a static page or a dinamic one. The above link should do it. Just try this specific one. > I will have to investigate further ... There is something strange going on then. What does it look with Show source in your browser? You could adjust your computers clock to. For me it is as if you posted tomorrow. Hans.
Re: Simple CGI-question: URL in generated HTML-page
Author: Hans Galema
Date: Thu, 20 Jan 2005 21:36
Date: Thu, 20 Jan 2005 21:36
15 lines
1469 bytes
1469 bytes
yeti wrote: > I have checked the clock, but it is (about) the correct > local time and date, and the timezone is correct. From the source of your post: Date: Thu, 20 Jan 2005 18:51:23 -0500 If you are in NL then your timezone is wrong and it should read +0100. From my post: Date: Thu, 20 Jan 2005 18:09:01 +0100 Hans.
Re: Simple CGI-question: URL in generated HTML-page
Author: yeti
Date: Thu, 20 Jan 2005 23:09
Date: Thu, 20 Jan 2005 23:09
24 lines
1622 bytes
1622 bytes
Hans Galema wrote: > Well you omitted the variations in the reference. > > Apparently you have something like: > > href="www.borland.com" > > But you have to use: > > href="http://www.borland.com" > > Hans. Thank you, mr. Galema, I am glad to hear that the tag used per se was correct. I actually did use this second form, along with a variant with added url$, but both didn't work (when the page was generated dynamically). I will have to investigate further ...
Re: Simple CGI-question: URL in generated HTML-page
Author: yeti
Date: Thu, 20 Jan 2005 23:51
Date: Thu, 20 Jan 2005 23:51
46 lines
2496 bytes
2496 bytes
Hans Galema wrote: > > There was no mentioning of a tag. > > A complete link using the anchor tag would have looked like: > > <a href="http://www.borland.com">Borland</a> > Yes, I had used a similar complete form for the original. I had my doubts, though, about "href", but could not find an alternative in the sparse CGI-documentation around. No doubts, anymore .. > > It should not matter if it is a static page or a dinamic one. > The above link should do it. Just try this specific one. > > > > There is something strange going on then. > > What does it look with Show source in your browser? > I will try this on my second computer (where I can test CGI locally). I also will redirect the output to a file, in order to look at the actual bytes; perhaps the "/", a special character in C/C++, get lost, somehow, in the output-proces (as the reference is part of the static text-part of the page). > You could adjust your computers clock to. For me it > is as if you posted tomorrow. > > Hans. I have checked the clock, but it is (about) the correct local time and date, and the timezone is correct. However, there seem to be more problems with this issue, as it is mentioned by users on other newsgroups too. Using: Mozilla. Thanks,
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads