Hi there!
I wonder if someone please can help me out!
It's pretty hard to explain, but I'll try and we'll see if I need to explain something further 🙂
I use the code below to have all values listed (comma-separated) from input fields that were posted on another page.
<?php echo $list = implode(",", $HTTP_POST_VARS); ?>
Using the code above with the fields seen below gives me this result: “one,two,three”
<input name=”1” value=”one”>
<input name=”2” value=”two”>
<input name=”3” value=”three”>
To the question…
Is there any way (without using foreach) to list the names of the fields using similar code as that is being used to get the values?
The goal is to have one piece of code that produces: “one,two,three” (completed)
and another that produces “1,2,3” (the field names).
Thank you so much for helping!!
Best regards,
Stephan