Reply to Re: back to html page from php

Your name:

Reply:


Posted by Skijor on 11/15/06 03:15

>
> if you mean executing a php script, and then redirecting, then its
> something like this:
>
> ** php script*
> if (TRUE == $jump) {
> // yes yes, lets be complient
> header("Location: http://www.somewhere.com/page.html");
> }

yes. this is what I mean. What about the converse? Calling a php
script from within html? I have an html static page that uses links to
a 3rd party shopping cart.
I want to use a shopping cart I wrote myself using php/mysql but what
do i replace the links with? I tried replacing them with a link to my
php cart script
(e.g., <a href="http://www.mydomain.com/myCart.php> </a>)

This works and now I can use the header() function from within the
myCart.php script to get back. I guess my question is do I have to use
the <a href=> tag to invoke the script on the server side? or a better
questions is can I just do this without problems?

>
> ** html page **
> <html>
> <head><title>...</title>/head>
> <body>
> <h1>Hello world</h1>
> <p>you were redirected from php</p>
> </body>
> </html>
>
> /Marcin

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация