The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Simple PHP Form not working?
post Jul 28 2019, 07:15 PM
Post #1

Serious Coder

Group: Members
Posts: 253
Joined: 17-August 13
From: Indiana
Member No.: 19,570







<div class="col-sm-8">


echo <<<HTML
  <form method="post" action="">
      <input type="text" name="Title" class="title-text" placeholder="Give your post a title...">
      <textarea class="form-control post-text" name="Post" required></textarea>
      <input type="submit" name="PostBtn" value="Post Now" class="btn btn-primary">



Does anyone know why this code would not work??? I talked to my host and they don't see any reason why this wouldn't work? (I did not worry about sanitization or anything bc this is just for testing purposes) I get absolutely no errors and that's with strict reporting.I refresh the page and the form doesn't even show up? Even emptying cache doesn't work, I had to destroy the session just to get the form to reappear?? Removing the if statement does nothing either

Works fine locally

This post has been edited by masonh928: Jul 28 2019, 07:15 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


- Lo-Fi Version Time is now: 9th December 2019 - 12:56 AM