ToonMariner
Members-
Posts
3,342 -
Joined
-
Last visited
Everything posted by ToonMariner
-
Why do i get this error: Undefined index: filef42 ?
ToonMariner replied to jd2007's topic in PHP Coding Help
and what line is the error reported on??? -
http://tinymce.moxiecode.com/ highly configurable there is a xhtml1.1 compliant wysiwyg out now - will post link when I find it.
-
then place a variable in the place where you are putting 'this' or 'is' and set it using your flow logic before calling the function.
-
Sessions also use cookies and you may not be able to configure your server to work without them... Its all a question of what data are you protecting - if there is nothing on your site that is sensitive like financial details then don't worry too much about security (by that I mean people seeing others details). I personally use a method to help out those who may have their accounts hacked by storing their e-mail on registration in 2 fields one can be altered teh other can't whenever a user needs to reset their password and email is sent to the original registartion email - so if their account does get hacked they can get it back again. if you are worried about storing certain data - don't ask for it - especially if you don't need it.
-
Why do i get this error: Undefined index: filef42 ?
ToonMariner replied to jd2007's topic in PHP Coding Help
if (file_exists($_FILES['filef']['name'])) try using is_uploaded_file instead... which line are you getting the error on? -
well you can use substr to pull out the relevant parts. you need to know which parts are what of course...
-
if only you had taken a modular approach to your app..... what you are asking has a number of solutions - basically whereever you have your nav - if ist already in an array then you could simply append these new links you want. Alternatively you could re-use your code that creates the navigation list to create another with these new links... with the code you have (I assume you use a foreach loop to traverse the array) you simply need to nest that foreach in another one that will loop through the keys of the 'parent' array.
-
those are not partyicularly secure encryptions - mcrypt functions would be more suitable.
-
Is this just a simple case of you providing your users with something like tinyMCE editor to create their own entries? all you need is a form where they can put in there content (with or without a wysiwyg editor) and submit it to a scipt that will add it to a database. Then you'll need a script that can grab all this infomation based on what the user wants to see. the initial question is far to braod to actually give you a full solution...
-
[SOLVED] Changing the color of the numbers on an OL
ToonMariner replied to Northern Flame's topic in CSS Help
try this css ul li { color: #f00; } ul li span { color: #00f; } html <ul> <li><span>a</span></li> <li><span>b</span></li> <li><span>c</span></li> <li><span>d</span></li> </ul> -
Its odd - people not understanding why a validator is telling you your code is NOT valid but as it 'works' the developer oftern doesn't see the problem. It is indeed the case that id should be for a solitary, unique element on a page and shoudl NOT appear in multiple places. for styling purposes Keeb rightly states that classes allow you to style multiple elements the same way... stick to the standards and you won't get invalid markup...
-
Just modify what Tom has given you to your needs - if you need more than that then be specific in your requirements. If you ar looking to make this an object then say so. Bottom line if you just ask for a table to list checkboxes - that is what you get... nothing more.
-
[SOLVED] Loop help, and database creation too...
ToonMariner replied to lupld's topic in PHP Coding Help
sorry but I tried reading and got lost... it doesn't really explain WHAT you are tyring to do - just that you keep 'headering' from one page to the next (which is where the time lag is); would be really helpful to see some code then we could see WHAT you are trying to do. -
better to use a tags and then you can do this without js... <div id="one"> <a href="#" class="tootip">--Somename <div class="roundcont"> <div class="roundtop"> <img src="tl.gif" width="15" height="15" class="corner" style="display: none" /> </div> <p> On mouse over</p> <div class="roundbottom"> <img src="bl.gif" width="15" height="15" class="corner" style="display: none" /> </div> </div> </a> </div> </div> the css .roundcont { width: 250px; background-color: #f90; color: #fff; } .roundcont p { margin: 0 10px; } .roundtop { background: url(tr.gif) no-repeat top right; } .roundbottom { background: url(br.gif) no-repeat top right; } img.corner { width: 15px; height: 15px; border: none; display: block !important; } // THE NEW STUFF a tooltip { position: relative; } a.tooltip div.roundcont { display: none; } a:hover.tootip div.roundcont { display: block; position: absolute; top: 0; left: 0; } have fun
-
if you are having browser problems may I suggest you use a good dtd? i use <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> simply because it irons out MOST of the differences in how these clients render (esp IE6). Makes you job so much easier...
-
is this not a case for <optgroup> ?? http://www.w3schools.com/tags/tag_optgroup.asp
-
??? onclick is an eventhandler for calling javascript (or vbscript if you are stupid enough to use is). My concern here is that in each case you are trying to override the default behaviour of a browser. My advice would be to use just submit buttons that are styled (MAC's will swap the image input for its own glass button anyway) and let the browser do what ever it does. You will find browsers do NOT handle the image input the same way - some pass the co-ordinates clicked other just the fact it was clicked. So where possible use mark-up that will work on a text-only browser and use css to make it look good. By all means do some js client side checks if you want but ensure you validate ALL user input server side too.
-
actually its the only way to creat the speech bubble with just css. you can easily sort ot the borders (the onld div to have borders would be the content div and that would have just left and right - all other 'borders' would be in a background image).
-
Mimicking a flash movie mouse hover, without mouse
ToonMariner replied to Rheves's topic in HTML Help
Reheves - I have used teh same captcha and you can modify it to work in other ways.... I can send you an altered flash file that is triggered by javascript rather than the user having to interact with the flash file itself... HOWEVER..... In terms of acesibility you may wish to consider producing an aural style sheet... the aural style sheet can trigger soundfiles to be played at certain points in the document. Not sure about its support (not really tried it but if you sell to people requiring this kind of service then you should invest in the same technologies they have to test your site) Have a look here http://www.w3.org/TR/REC-CSS2/aural.html note the cue:before: url('png.au') - that tells teh client to play that soundfile just before those html elements are encountered... Hope it helps. -
css3 can do the arrow... http://www.css3.info/preview/border-image.html when it gets here.... NOW you CAN do it with css2 BUT you will need a whole lot more html.... <div class="speechbubble"> <div class="topleft"></div> <div class="topline"></div> <div class="topright"></div> <div class="content">TEXT IN HERE</div> <div class="bottomleft"></div> <div class="bottomright"></div> </div> u may even need another div in between bottom left and bottomright... split your speechbubble image up into its relevant bits and set them to teh background of teh relevant divs...
-
css3 could do it but support is sadly lacking at the moment
-
When to use final, abstract and protected ?
ToonMariner replied to jd2007's topic in PHP Coding Help
If you are asking the question then you are not ready to be using them. Thats not being horrid to you mate, its just until you have a good handle on PLANNING an application then you should NOT even be going anywhere near - bet your bottom dollar you will declare a protected method only to realise you to access it from outside the class near the very end of teh development phase - and then you will be very unhappy..... -
we need to see some code - you are obviously setting some thing somewhere.
-
try using $row['networking'];