Processing _POST data
-
OK I have limited knowledge of PHP and how WordPress works internally so I will try and explain what I am trying to do as best as I can without sounding totally stupid.
I am trying to pass data from one WordPress page (landing page) to another (order form using the eStore plugin) and filling in the custom_input form on the Order page using the values passed from the previous page.
I have just setup a test form on the landing page using the following code:
<form action=”/order-form/” method=”post”><input name=”custom_input” type=”text” />
<input type=”submit” name=”submit” value=”submit”>Now from my understand I need to process that POST data using PHP so I modified my plugin slightly and added:
$customInput = $_POST[‘custom_input’];
<input type=”text” name=”custom_input” value=”‘ . $customInput . ‘” class=”eStore_text_input eStore_collect_input” />
There’s obviously more code to it but they are the important parts.
Nothing happens when I try this out. No errors occur so I am presuming nothing is wrong with my code but I am guessing it’s something to do with how WordPress processes POST data. Is there an ‘easy’ work around for this?
- The topic ‘Processing _POST data’ is closed to new replies.