gordonisnz Posted September 4, 2020 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. Link to comment Share on other sites More sharing options...
gordonisnz Posted September 4, 2020 Author 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). Link to comment Share on other sites More sharing options...
dsonesuk Posted September 4, 2020 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 Link to comment Share on other sites More sharing options...
gordonisnz Posted September 5, 2020 Author Share Posted September 5, 2020 FACEPALM !! - sorry... spend hours looking at a problem & its such i minor mistake Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now