View Full Version : forms


Naresha
03-21-2006, 02:04 AM
HELP please!!! I actually typed this all up once before at 2am this morning, and my computer went flunky and deleted it all!

www.thelatinexp.freespaces.com/Sponsorship.html

On that page, I'm trying to do a form, except it keeps deleting all the code after I put </textarea> in after the last question. And when I go to check on the page, all the code is IN the text box. And my buttons have been disappearing!

Now, I was doing all this as a copy paste from the page Lissa has with the code for forms - which I now can't find, any help there too? And I was doing it straight into the create/edit part of the Freespaces file manager - maybe that was the problem?

Please help! it's the first time I've done CSS and forms and stuff and it's for a friend's company which has just gotten underway!

Resha

J to the izzosh
03-21-2006, 02:25 AM
Well, your main problem is that you didn't close your <textarea> element. That is to say, you didn't include the proper end tag, </textarea> in your source. The reason all of that other code is appearing inside your text area is that anything you type between the opening tag <textarea> and closing tag </textarea> will appear as text inside the element. Because you didn't close the tag, everything after your first <textarea> tag is considered to be inside it.

<textarea name="Subject of text area" rows=7 cols=46></div></body></object></layer></div></span></style></noscript></table></script></applet>

You should put </textarea> between what is orange and what is green. Be sure to close your <form> element with </form> immediately after that unless you include more input elements. You should also be sure to include your closing </html> tag after you close your <body> element (between green and red text). Everything that is red should just be deleted as there are no opening tags for them to match up with; they shouldn't be there.

I'm going to assume that the rest of the code on your page after that point is automatically inserted by your free host. If it isn't, then you should either delete it, or move it since the <style> element should always appear inside the <head> element, and in good practice, so should the <script> element.

Naresha
03-22-2006, 04:00 AM
Thanks for the help, but I actually know there is no </textarea> tag there - one of the problems I have is that it keeps deleting itself whenever I save it! Everything after - and including </textarea> deletes itself whenever I hit save. I have no idea why it does that - that's why I left the </textarea> code out - so at least the rest of the code stays put whilst I figure out the rest of the problem!

And as for all the style and script elements - your first guess was right! It's stuck that in all by itself! I just looked at it now, and it's now only </div></body> in there!

Thanks for the links, I'll be sure to check them out.

J to the izzosh
03-22-2006, 12:05 PM
Well, it's no good if your host keeps altering your code (let alone the annoying ad-related bits they tack on) when you save it through their editor. You might try editing and testing it locally on your computer until you have it they way you want it to look, and then uploading it to your host.

Naresha
03-22-2006, 12:55 PM
I actually managed to fix it - it was something to do with the editor on the website. Not a CLUE why, it's worked on all my other pages just fine. But I copied it into a separate file and finished it by hand then uploaded it and it now works! Except now I'm having problems with one of my other pages opening *sigh* The page opens if you type in the exact url, but if you try to click the link, it can't find it! And I can't see why!:confusion So I've chucked it in for tonight and shall look at it again tomorrow! Oh, and freespaces doesn't have any ads on it - which is one of the reasons I love it so much! It does have bandwidth restrictions, but they seem to be pretty generous by comparison. I did use Websamba for a while, and it only had one static ad for itself on there, but my computer had issues with it for some reason, so I had to stop!

J to the izzosh
03-23-2006, 01:02 AM
I'm glad to hear it. You should still take out that bit of code after your closing </html> tag that reads "<br><br></object></layer></div></span></style></noscript></table></script></applet>". It honestly isn't doing anything, and can only get up to a lot of no good.

No ads, you say? What's that little box in the upper-right of your page that says "This site hosted for free at FreeSpaces.com", then? ;)

The link issue just sounds like the URL in your href attribute is mistyped. I'm sure you'll fix it quickly after looking at it again.

Naresha
03-23-2006, 01:09 PM
I actually gave up on the original page and created my own in Notepad and then uploaded it. I just couldn't get it to work within the frame of Freespaces - and I looked at it the other night and it's STILL moved the blasted buttons!!! I actually moved all the pages into my own little folder on my harddrive! Much easier that way! A bit more time consuming to check it's working, but easier in the long run! Thanks for the help. :teddy: