Why is your server changing my coding?

Status
Not open for further replies.

optiqwor

New Member
Messages
13
Reaction score
0
Points
1
I've been going insane for the past 3 days trying to figure out what's wrong with my javascript because I kept getting an error with my php file. I discovered that for some reason my <textarea> tags are being modified into self closing tags making them <textarea....stuff..../> instead of <textarea....stuff.....></textarea>. This is causing it to put a huge chunk of my site into the textarea eliminating a lot of information from the browser which stops it from working...... why is this happening?
 

Patrick.B

Member
Messages
96
Reaction score
4
Points
8
Hi,

The server not modify any file, it is probably a old version of your code temporary screw in cache.
 
Last edited:

optiqwor

New Member
Messages
13
Reaction score
0
Points
1
I tried saving it as a new name to avoid that, because it'll also take forever to update the file if it's named the same as another file recently deleted.

Here's a pic of it the way I have it coded in Dreamweaver
textarea_Problem_01.jpg





After uploading it to the server I started getting a javascript error telling me something was null.... so I right clicked and selected "inspect element" and got this

textarea_Problem_02.jpg




I even viewed the page source, which showed this
textarea_problem_03.jpg




... besides that I NEVER make a textarea tag as a self closing tag so even if it were an older one it still wouldn't have that mistake in it to keep current. The file is a PHP file by the way if that helps shed light on anything. All other support I've been able to get with trying to figure out what's wrong say this is a server side issue because there's no reason for it to do this. What could be causing the coding to physically change after I upload it to the server?
 

Patrick.B

Member
Messages
96
Reaction score
4
Points
8
because it'll also take forever to update the file
No, your totally wrong, just the time for cache clean, for avoid this, modify your ".htaccess" file on your hosting account and configure new cache time.

I NEVER make a textarea tag as a self closing
As I can see, the code source on your computer is different from the web page, it's NORMAL, you have put a old and obsolete html code, google chrome just have correct this for you, not the hosting server. Chrome assuming you close with "</textaera>" but is cleary not necessary so, chrome self close the tag, that's it.

All other support I've been able to get with trying to figure out what's wrong say this is a server side issue
I'm interesting to talk with these Other people ... or just, stop to talk to us.


Overall, your thread is a very basic situation all beginner coder get in his life, it's normal, please .. be honest and assume your wrong, don't put the fault automatically on server-side, it's too much easy.

Now, if you understand this, I would be happy to help you to find and fix your code problems. Can you explain again with much more details your problems with your script and/or error you receive.
 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Hi optiqwor,

We don't change any files you upload to the server. I took a quick look at your account, and found that "Corp_ID_&_Branding_Questionnaire.php" had the correct HTML line in:

HTML:
<textarea id="my_comp" name="How_did_you_hear_about_my_Company?" class="tex_inp01" style="width:88%; height:100px; font-size:14pt;"></textarea>


Is this still an issue? If so, please could you give me a link to the file affected? :)

Thank you,
 
Status
Not open for further replies.
Top