0

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>
3
Contributors
3
Replies
20
Views
3 Years
Discussion Span
Last Post by babbu
0

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.

0

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 ...

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.