Jump to content

call php


fareedreg

Recommended Posts

You may use few directives. Depends what you want achieve try with:

require_once("2nd.php");

 

From that point you may call/use variables and functions from 2nd.php as your local - depends of range.  :shrug: It acts like you have code from both scripts executing in one single file.

 

Cheers!

Link to comment
https://forums.phpfreaks.com/topic/186012-call-php/#findComment-982242
Share on other sites

Do you know how to use GET/POST? You can send them to "page2.php?id=1&form=submitted"

 

On page2.php, $_GET['id'] and $_GET['form'] will be passed there (as it's in the url)

 

POST does not change the url, but it's a bit more complex if you don't know how to use forms/headers.

Link to comment
https://forums.phpfreaks.com/topic/186012-call-php/#findComment-982245
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.