gordonisnz 0 Posted September 4, 2020 Report Share Posted September 4, 2020 Hello. I have a bit of a problem with W3CSS and INPUTS (textarea) https://www.w3schools.com/w3css/w3css_input.asp Textarea is not referenced with the above page. Here is my HTACCESS :- RewriteRule ^([0-9]+)?$ /PATHNAME/yours_description.php?entity=$1 [nc,l,QSA] if i go in the URL - path/67 my script activates and the vaklue of $entity is retrieved. HOWEVER - PROBLEM. I want a TEXTAREA to be sent as a POST value. But no matter what I do in w3css, the textarea comes out as blank. (my php script also has print_r for $_GET and $_POST - the $description value isnt passed at all.) Here is my template <form class="w3-container w3-light-grey" action="/yours/description/{$entity}" type="POST"> <label>Your Business description</label> <textarea class="w3-input w3-border-0" name="description" rows="6" cols="45" value="{$description}"></textarea> <button class="w3-btn w3-brown">Update</button></p> </form> Is it possible to use a combination of GET and POST ? I'll rather use GET so a person can easily switch entities. But the rest of the form elements need to be in POST. Quote Link to post Share on other sites
gordonisnz 0 Posted September 4, 2020 Author Report Share Posted September 4, 2020 FURTHER - Ive made changes - removed VALUE from the textarea - it now posts as GET (even though the form is set as POST). Quote Link to post Share on other sites
dsonesuk 913 Posted September 4, 2020 Report Share Posted September 4, 2020 (edited) its 'method'! not 'type', it does not recognise it, so it defaults to non existing 'method' default which is GET. Edited September 4, 2020 by dsonesuk Quote Link to post Share on other sites
gordonisnz 0 Posted September 5, 2020 Author Report Share Posted September 5, 2020 FACEPALM !! - sorry... spend hours looking at a problem & its such i minor mistake Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.