|
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
Navigation:
[Reply to this message]
|