2

i want get value of array in php , but it don't ... my print_r($_POST) is :

Array
(
    [form] => Array
        (
            [site_core_selection] => Array
                (
                    [0] => 
                )

            [domain] => Array
                (
                    [0] => com
                )

            [hidden_premier] => 
            [shoping_hidden] => 
            [submit] => تائید سفارش
            [formId] => 3
        )

)

i want get value of domain[0] , please help me ??

2
  • 3
    try $_POST['form']['domain'][0] Commented Feb 8, 2016 at 7:36
  • 1
    try $_POST['form']['domain'][0] Commented Feb 8, 2016 at 7:36

2 Answers 2

3

Try out this

<?php
echo $_POST['form']['domain'][0];
?>
Sign up to request clarification or add additional context in comments.

Comments

1

In php is very simple, try this code:

<?php
   echo $_POST["form"]["domain"][0];
?>

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.