Title: php code snippet help
Last modified: March 21, 2017

---

# php code snippet help

 *  [tcbwazi](https://wordpress.org/support/users/tcbwazi/)
 * (@tcbwazi)
 * [9 years ago](https://wordpress.org/support/topic/php-code-snippet-help/)
 * Hello
 * can anyone help me out please?
 * I am trying to call a 3rd party short code set up via the do_shortcode process.
   The coding is below
 *     ```
       <?php
   
       // Get amount from querystring value.
       $reference = $_GET[ "fullcode" ];
   
       // Output shortcode where needed in template files.
       echo do_shortcode('[stripe name="Access Housing" description="Housing Costs"] 
       					[stripe_text label="To Confirm, please re-enter your unique reference" Default = '.$reference .' id="Reference" required="true"] 
       					[stripe_amount label="Enter Desired Payment" placeholder = "300" required = "true"]
       					[/stripe]');
       ```
   
 * however I am having problems pulling the $reference part through into the shortcode.
 * fullcode comes from a html form which is then using JS to validate the data entry,
   but I need the fullcode value to appear as part of the stripe shortcode process.
 * Someone suggested it would be possible via the do_shortcode process. The php/
   do_shortcode does work as the remainder of the shortcode does appear on the page
   when it should, , but I dont seem to be able to pull the fullcode from the html
   through.
 * any suggestions?
 * Thanks

The topic ‘php code snippet help’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/php-code-for-posts_0d1022.svg)
 * [PHP Code for posts](https://wordpress.org/plugins/php-code-for-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-code-for-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-code-for-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/php-code-for-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-code-for-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-code-for-posts/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 0 replies
 * 1 participant
 * Last reply from: [tcbwazi](https://wordpress.org/support/users/tcbwazi/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/php-code-snippet-help/)
 * Status: not resolved