Error - Invalid character(s)

In the PHP script I’m using, I added the field: Company to the registration html page like so:


<div><div style="margin-left:30px; display:inline;float:left;">
	       <b>Company Name:</b>
	      </div>
	      <div style="margin-right:65px; display:inline;float:right;">
	        <input type="text" name="Company" size="26" value="[var.Company]" />
	      </div>
	    </div>

when I enter a company name such as:
ABC Inc

it appears correctly in the phpmyadmin db table.

But when I enter:
ABC Inc.
(with a period)
the script shows this error:

Error - - Company Invalid character(s)

I’m guessing it has to do with the set up in phpmyadmin?
Any ideas or assistance would be appreciated.

That is not a PHP or MySQL error message, so it’s coming from some of your own PHP code. It isn’t related to phpMyAdmin, which is a GUI for viewing a MySQL database.

My guess is whatever you’re using to valdate the user input isn’t allowing the period. Faulty regex?

I’d say this was using some kind of templating engine.


<input type="text" name="Company" 
    size="26" value="[var.Company]" />

You’ll need to do some more investigation and show us the shortest amount of code you can which encapsulates and yet illustrates your problem.