You don’t need the echo
when you are concatenating strings. Just remove it.
$xmlInputData="<?xml version="1.0" encoding="utf-8" ?><data><settings><origin="".
$my_options['origin'] .'" username="'.
$my_options['user'] . '" password="'.
$my_options['password'] . '" /></settings><enquiries><lead productName=\"Appointment Booking"><customer><name>'.
$_REQUEST['first-name'].' '.
$_REQUEST['last-name'].'</name><email>'.
$_REQUEST['email'].'</email><postcode>'.
$_REQUEST['postal'].'</postcode><houseNumber></houseNumber><address></address><city></city><region></region><tel>'.
$_REQUEST['phone-number'].'</tel><mobile></mobile><notes></notes></customer></lead></enquiries></data>';
Related Posts:
- WP Import All Multiple Dynamic Link Imports
- SimpleXML is not working with xml response from external api
- Xml output not places where i want
- What are the differences between WPINC and ABSPATH?
- Plugin or advice on how to parse XML in real-time?
- How to make simply “report” button on posts
- Get php var inside javascript file (making plugin)
- Find out what is using PHP sessions in WordPress
- Bug in Stackoverflow styled badge system script
- Change destination author link
- WordPress PHP plugin – Settings page error
- Uncaught Error: Call to undefined function get_user_by() after moving function from theme to plugin
- Display a text message if the field is not found and not if found
- Scope for PHP Variables Assigned in functions.php or a plugin
- Add a plugin before main container
- Shortcode to generate and save password in a file
- problems with wordpress and php version 5.3.3-1
- Prevent a plugin from being automatically activated
- WordPress Redirect Not Working – AJAX Callback Response Not Picked Up
- Saving changes in wp_editor
- Output array into one table cell
- wordpress plugin is not activating from widget
- Using meta_query to get date type values from post_meta table WordPress
- Creating a custom post type, adding custom meta fields, preventing all future editability of posts of this type
- WpDataTables – View Image Directory
- How to block XML-RPC attack?
- Using plugin functions/methods within templates
- WordPress shows error related to allow_url_fopen
- Delete mobile menu button [closed]
- Using color picker in plugin, does input attribute order matter?
- How can integrate zend module with wordpress admin dashbord [closed]
- Setup wp_schedule_event within a custom plugin
- Does having more than 30 Admin Ajax affects site performance (plugin)?
- execute function after one completed
- WHy custom plugin slows down the loading of the pages?
- Adding media upload button to User Profile page (following a tutorial)
- How to get specific string/value from an array? php [closed]
- WordPress Stock Update Programatically
- UTF-32be error WordPress
- Background Music WP [closed]
- Getting a ressource ID, from a WC_Order_Item_Product/Order
- Customize Menu | Styling LESS/SCSS code formats
- Why is it important to check for isset and is_array before checking in_array in this example?
- How to delete a theme using AJAX
- ACF – How to set the menu order for the relationship field
- Custom search search does not work?
- How to call external functions from a PHP script in a WordPress plugin?
- same user role or copy the user role to be same as the other role
- Equivalent of admin.php for public pages
- Theme Functions run a function upon activation or preview
- Is this plugin safe to run?
- WP Subtitle Plugin Problem
- Custom Plugin scripts from admin working in frontend
- WooComerce Deposit: set specific shipping method and quantity based deposit amount
- Unexpected add action function in WP plugin
- How to get brand children with woocommerce brands
- Prevent WordPress from sending set-cookie http header
- Is there any way to sync Facebook Comments and with comments on WordPress website?
- How to add a prefix to a WordPress post preview url?
- i can not access the post in custom template of my wordpress plugin
- location lock wordpress website
- Use AJAX to fetch Current Post Thumbnail for WordPress when Uploaded throughMedia Uploader Frontend
- Easiest way to load/fire a handful of functions, IF checkbox is checked?
- How to avoid the 403 Forbidden error in a WP Plugin with Ajax and PHP
- How much PHP and MySQL or MariaDB knowledge should I know to start writing WordPress themes and plug-ins and whatever else a beginner can edit?
- post id or permalink auto-incrementing number and reset everyday
- WordPress sitemap “Extra content at the end of the document”
- How To Use htaccess to Rewrite Link Structure for a Page that is Generated Programatcially
- WordPress logout appends cache/all/index.php to the site_url()
- Reverse count page view and show on other page
- Creating a WordPress addon for ContactForm7 submission (.XML file export)
- Change (replace) word in metabox
- Limiting buddy press features based on membership level (PMPro)
- Caching of combined CSS and JS fails because of losing MIME types through combining by PHP
- Change pricing in Woocommerce based on Category and Product [closed]
- Register setting on plugin activation
- WordPress environment not loading properly
- How to remove a css class for any wordpress page
- WordPress not displaying information on post sent from custom admin form
- How to replace native comment_count with Comments Evolved aggregate count
- Woocommerce: deleted single-product.php, everything still works. How is it possible?
- Is there any wordpress function to update a random post every 10 minutes?
- export high ress images to pdf
- custom url with custom post
- Saving an array to get_options
- Working on fixing wp-front-end-editor, encountering undefined index
- MySql Query for WordPress
- Shrinktheweb plugin problem
- Photos do not show on SEO platform built into a wordpress plugin
- Issue with custom plugin
- Showing author box on post detail page
- Help me with my first very basic plugin
- My wordpress website admin panel loads very slow, what can i do about that? [closed]
- PHP $_session is not work in wordpress
- is_plugin_active() not defined on active plugin, in the thumbnails.php file
- Undefined constant error in pluggable.php
- How to insert current “login” page to certain page?
- How to show random feed from DB and show content in my site
- Requires PHP version 5.3.0
- True or False: Is an Apache error or PHP error the same as a WordPress error?