hello
i have a textarea named skills..

i wanna get values from skills and put it in a array ..my code

<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
        <form name="f1" action="wel.php" method="post">
            <textarea name="table"></textarea>
            <textarea name="skills"></textarea>
            <textarea name="city"></textarea>
        <textarea name="region"></textarea>
        <textarea name="country"></textarea>
        <input type="submit">
        </form>
        </body>
</html>

Recommended Answers

All 3 Replies

Getting value from a textarea in PHP is similar to getting value from a textbox.It's done like:

<?php
    $skills=$_POST['skills'];
?>

But assuming that you want to put it in an array,I assume that the string is a collection of skills separated by some delimiter,like a comma for which you can use the explode() function in PHP and store the array of 'skills' in a variable $skills like:

<?php
    $skills = explode(',',$_POST['skills']);
?>

Hope that answers your query.

thank u i got it please reply to my other questions also...
can i search a single column simultanously for 2 words in mysql???

we can use | or operator but not and ...

yes you can use or operator

select * from employee where id = 10 or name = 'ankit'
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.