Need Direction : php coded page needs added to wordpress site
-
We have a website that we are changing over to run within WordPress. We have a form which gathers information for a support case. Then the data is saved in the database, a form is printed for signature, and emails are sent out. Works great in its current position (non wordpress).
I have attempted to use a couple php plugins(Shortcode Exec PHP Administration does a great job) to run the code and display data. I have been able to generate pages pulling data using the same php coded page and adding the info to the plugin and create a snippet.
However, none will do this form. The php page has almost 800 lines of code. It appears to “break” when it reaches a pike in a couple arrays.
example:
function my_ucwords($str, $is_name=false) { // exceptions to standard case conversion if ($is_name) { $all_uppercase = ''; $all_lowercase = 'De La|De Las|Der|Van De|Van Der|Vit De|Von|Or|And'; } else { // addresses, essay titles ... and anything else $all_uppercase = 'Po|Rr|Se|Sw|Ne|Nw'; $all_lowercase = 'A|And|As|By|In|Of|Or|The|To|De La|De Las|Der|Van De|Van Der|Vit De|Von'; } $prefixes = 'Mc|Mac'; $suffixes = '';
I have tried creating a template page as well, but all I get is a blank page with no errors.
We weren’t wanting to start from scratch with a form plugin for a couple reasons, but long story short, lots of data to re-enter and recreate. We are kind of partial to making changes in our database management software (navicat) which is the reason for using the same database fields and tables as previously used.
Any direction would be greatly appreciated. This may be something very simple. But I have been scouring the code and it is now making my eyes cross. HA! But that is expected when messing with code and creating websites and such. Any help guys, I would appreciate.
- The topic ‘Need Direction : php coded page needs added to wordpress site’ is closed to new replies.