User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 422,393 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,826 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 320 | Replies: 4 | Solved
Reply
Join Date: Aug 2007
Posts: 16
Reputation: smartness is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
smartness's Avatar
smartness smartness is offline Offline
Newbie Poster

4 errors till validation... plz help

  #1  
Mar 14th, 2008
hi, im getting these 4 (or 5) errors when i validate my page at w3.org

click here to see the errors!

what can the problem be?!

plz help...
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2007
Location: Somewhere in Germany
Posts: 53
Reputation: JRSofty is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 9
JRSofty's Avatar
JRSofty JRSofty is offline Offline
Junior Poster in Training

Re: 4 errors till validation... plz help

  #2  
Mar 14th, 2008
Although this is a PHP forum and your problem is HTML I'll give you the answer as I see it

At the bottom of your forum you have a small dropdown box that allows you to jump around to different places or maybe to change skins (I'm not sure because I don't speak the language)
Obviously for this to work it must be in a form. However, your problem is that there is no closing of the form tag. For example you have
  1. <form action="someurl" method="get">Form Stuff
Instead of
  1. <form action="someurl" method="get">Form Stuff</form>

See how I closed the form's tag at the end? You need to make sure all tags are closed correctly. This should clear up all 4 of your errors.
Reply With Quote  
Join Date: Aug 2007
Posts: 16
Reputation: smartness is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
smartness's Avatar
smartness smartness is offline Offline
Newbie Poster

Help Re: 4 errors till validation... plz help

  #3  
Mar 14th, 2008
no i cant find it, when i change the template it appears ok, but when i change this darkx then these 4 errors appear...

here is the style.... inside the zip... could you check it and tell me where the problem is... i can give you the whole style if you want... but i don't know if you have a vbulletin board to test it!

look at the attachments... attachment vbulletin-style is only the xml style
and attachment darkx.zip is the whole stle with images...

i hope someone can help me cuz i love that style
Attached Files
File Type: zip vbulletin-style.zip (12.9 KB, 0 views)
File Type: zip darkx.zip (205.8 KB, 0 views)
Reply With Quote  
Join Date: Dec 2007
Location: Somewhere in Germany
Posts: 53
Reputation: JRSofty is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 9
JRSofty's Avatar
JRSofty JRSofty is offline Offline
Junior Poster in Training

Re: 4 errors till validation... plz help

  #4  
Mar 14th, 2008
The main reason you can't find it is that the output is not very clean. No newlines no indentions, in a lot of cases just code. This could be because of the software you are using and how they do templating.

I'll give you exactly what to search for in your file and then you can change it.

Open up your template file (particularly the one for your darkx skin) and search for this HTML
  1. <form action="http://home.sprit.org/donrow/forum/" method="get">

This is the form tag that is opened and not closed. It should be located somewhere close to the end of your HTML

Now you will probably want to close that so you quit getting the errors so you search along that line of code until you find where you want the form to stop.

My suggestion is to find this and at the end of it before you open the div tag place your closing form tag:
  1. <table cellpadding="6" cellspacing="0" border="0" width="100%" class="page" align="center"> <tr> <td> <select name="langid" onchange="switch_id(this, 'lang')"> <optgroup label="zgjidhë Gjuhen"> <option value="1" class="" >-- English (US)</option> <option value="2" class="" selected="selected">-- Shqip</option> </optgroup> </select> </td> </tr> </table>

So basically when we put it all together it should look like this when you have edited it:
  1. <form action="http://home.sprit.org/donrow/forum/" method="get">
  2. <table cellpadding="6" cellspacing="0" border="0" width="100%" class="page" align="center"> <tr> <td> <select name="langid" onchange="switch_id(this, 'lang')"> <optgroup label="zgjidhë Gjuhen"> <option value="1" class="" >-- English (US)</option> <option value="2" class="" selected="selected">-- Shqip</option> </optgroup> </select> </td> </tr> </table>
  3. </form>

If you do that then it should be fixed.
Reply With Quote  
Join Date: Aug 2007
Posts: 16
Reputation: smartness is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
smartness's Avatar
smartness smartness is offline Offline
Newbie Poster

Re: 4 errors till validation... plz help

  #5  
Mar 14th, 2008
thnx brother.. i fixed the problem...
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the PHP Forum

All times are GMT -4. The time now is 9:00 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC