Jump to content

include problem


klepec

Recommended Posts

you can use the default value

for example

$message = "you default value";

include("some_process_file_that_change_behavior_of_message_var.php");

//follow you code check here

 

It's another option but then your blinded as to what's happening to $message. Its only a work around not a practical solution in my opinion.

hope it help

Link to comment
https://forums.phpfreaks.com/topic/259798-include-problem/#findComment-1331515
Share on other sites

I know :/ ... i do includes whenever i operate with the databases and forms.

For example, there is a user form for storing company information and few company images.

 

In original file i usually do the html (form), and submit button isset condition (PHP).

In included file (PHP only) i operate with post variables, create thumbnails, save images, insert to database, select from database.... etc

 

Then back in original file I usually print out database results, messages etc.

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/259798-include-problem/#findComment-1331539
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.