Jump to content

Nugax

New Members
  • Posts

    4
  • Joined

  • Last visited

Nugax's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. So the fix was this code... //Display Cell Providers Routine function PrintCellProviders($default_value = null) { global $CellProviders; if (isset($default_value)) { print("<option selected>$default_value</option>"); } foreach ($CellProviders as $col_value) { print("<option>$col_value</option>"); } }
  2. Ah... Actually, this function just prints. And from the calling php file, it stops executing with the error: Uncaught ArgumentCountError: Too few arguments to function. I think it is the way default_value is referenced in the call. It is called with no value, and prior PHP versions worked but something changed with 7.
  3. Does it need a return value? It only prints html.
  4. I had the below function and it stopped working. I am assuming something changed in a new PHP Version since I wrote it. I am on Php 7.3.x now and this function returns no value. Can someone tell me where I went wrong! Thanks in advance. //Setup Text Array $CellProvidersMap = array ("ALLTEL"=> "sms.alltelwireless.com", "ATT"=> "@txt.att.net", "BOOSTMOBILE"=>"sms.myboostmobile.com", "VERIZON"=>"@vtext.com", "CRICKET"=> "mms.cricketwireless.net", "SPRINT"=>"messaging.sprintpcs.com", "STRAIGHTTALK-VERIZON"=>"@vtext.com", "VERIZON"=>"@vtext.com" ); $CellProviders = array ( "ALLTEL", "ATT", "BOOSTMOBILE", "CRICKET", "SPRINT", "STRAIGHTTALK-VERIZON", "VERIZON" ); //Display Cell Providers Routine function PrintCellProviders($default_value) { global $CellProviders; if (isset($default_value)) { print("<option selected>$default_value</option>"); } foreach ($CellProviders as $col_value) { print("<option>$col_value</option>"); } }
×
×
  • 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.