Note that there are some explanatory texts on larger screens.

plurals
  1. POCall PHP from external php file
    primarykey
    data
    text
    <p>What I am trying to do is put all of my variables in an external php file and then call them on different pages. I am creating workflows for multiple projects, all of these projects follow the same flow but have some different information like phone numbers and fees for things. So what I am trying to accomplish is put all of my variables in an external file so if something changes for a project I can edit the one file versus open up the 23 different workflows I have created. </p> <p>This is just a sample of all the external file will have but for 31 different projects and 14 different variables for each.</p> <pre><code>&lt;?php $project_id = $_GET["project_id"]; switch ($project_id) { case "fl": $title = "Florida EPC"; $replacement_fee = "$4"; break; case "tx": $title = "Texas EPC"; $replacement_fee = "$6"; break; } ?&gt; </code></pre> <p>Then just a basic rundown of each workflow </p> <pre><code>&lt;div id='a1' style="display:block;"&gt; &lt;div align="center" style="border-bottom: 1px solid black;"&gt; &lt;b&gt;Check the CARDS tab for the PAN.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt; &lt;/div&gt; &amp;nbsp; &lt;div align="center"&gt; &lt;p&gt;&lt;i&gt;"I'm sorry to hear you have lost your card. I can cancel the Lost card for your protection."&lt;/i&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt; &lt;font color="red"&gt;Was the PAN issued?&lt;/font&gt;&lt;br /&gt;&lt;br /&gt; &lt;a class="button" href="javascript:switchid('a2');"&gt;&lt;span&gt;Yes&lt;/span&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp; &lt;a class="button" href="javascript:switchid('a3');"&gt;No&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id='a2' style="display:none;"&gt; &lt;div align="center"&gt; &lt;p&gt;&lt;b&gt;Advise the client the card was previously cancelled.&lt;/b&gt;&lt;/p&gt; &lt;p&gt;&lt;i&gt;"Your card has already been deactivated as of (date of deactivation)."&lt;/i&gt;&lt;/p&gt; &lt;br&gt;&lt;br&gt; &lt;font color="red"&gt;Is the address up to date?&lt;/font&gt;&lt;br /&gt;&lt;br /&gt; &lt;a href="javascript:switchid('a4');"&gt;Yes&lt;/a&gt;&amp;nbsp; &amp;nbsp; &lt;a href="javascript:switchid('a5');"&gt;No&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>within some of the divs all i will put is <code>&lt;?php echo $avariable; ?&gt;</code> when the different info will be used. I just need to beable to call the external file on each workflow and can't figure that part out.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload