Date: 07/29/00
- Next message: Bryan McGuire: "Re: [phplib] Call To another Script"
- Previous message: Philippe Paravicini: "FW: [phplib] phpwebhosting.com"
- Maybe in reply to: Jose Luis Rodríguez Sevilla: "[phplib] Call To another Script"
- Next in thread: Bryan McGuire: "Re: [phplib] Call To another Script"
- Reply: Bryan McGuire: "Re: [phplib] Call To another Script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
you can call another script by using a form and specifying the other script
in the action parameter. Any inputs in the form would be passed to the
receiving script, including any hidden inputs that you can use to pass
variables from one page to the next.
You can also use a link to call another script and pass variables through
key value pairs in the url, such as: <a
href="aPhpScript.php?var1=something&var2=somethingelse">the link</a>
Finally, you can use the header command to redirect your script to another
page. If you do this, you must make sure that the script has not already
outputted an http header or any text (html, text or even white spaces).
The syntax for the header command is header("Location:
aPhpScript.php?var1=something&var2=somethingelse").
Alternatively, you can use javascript to redirect a page that is being
loaded. You would accomplish this by having php 'print' the necessary
javascript, possibly as the result of a given set of conditions. I don't
know the javascript syntax off the top of my head, but it's something like
document.location="aPhpScript.php?var1=something&var2=somethingelse" inside
a javascript script tag.
Finally, you really should not post off-topic questions to this forum, and I
really should not be answering them.
pp
> -----Original Message-----
> From: Jose Luis Rodríguez Sevilla [mailto:joseluis <email protected>]
> Sent: Friday, July 28, 2000 4:01 AM
> To: phplib <email protected>
> Subject: [phplib] Call To another Script
>
>
> Hello,
>
> I konw that it's not the group to do this question but your are
> the most quick.
>
> How i can call from a php script to another php script passing
> two variables.
>
>
> Thanks. Jose Luis
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Bryan McGuire: "Re: [phplib] Call To another Script"
- Previous message: Philippe Paravicini: "FW: [phplib] phpwebhosting.com"
- Maybe in reply to: Jose Luis Rodríguez Sevilla: "[phplib] Call To another Script"
- Next in thread: Bryan McGuire: "Re: [phplib] Call To another Script"
- Reply: Bryan McGuire: "Re: [phplib] Call To another Script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

