Write to a php file via wordpress -


i've built web page able send text messages employees @ company work. new employees being added , removed on constant basis, want integrate app wordpress employees can managed without editing code.

each post contain user's name , phone number. name pulled in on webpage option user contact. when form submitted, go php form runs if/else find employee , match employee phone number so:

//who text message to, establish phone # if($employee == 'brad'):      $text_to[] = '+15555555555'; elseif ($employee == 'mary'):      $text_to[] = '+15555555555';  elseif ($employee == 'tom'):      $text_to[] = '+15555555555';  elseif ($employee == 'bill'):      $text_to[] = '+15555555555';  elseif ($employee == 'joe'): endif; 

i want able not pull these names wordpress via loop display onto page, but able add or remove new entries, along phone number, php contact form.

i know how loop through wordpress posts display names on page. want know if it's possible use data modify contact form, , if so, how set up. each time edits wordpress entry joe, php form gets update when joe sent message, finds phone number , sends him message.

any appreciated. should note i'm using twilio send texts messages.

the use of dmbs works well, not solution.

include 'users.inc'; // flat file creating array $userlist array( ofarrays ) complex structures

[assume $userlist = array($user => $phone, ...); ] foreach( $userlist $user => $phone ) { // process($user, $phone); }


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -