Jump to content

RichardRotterdam

Members
  • Posts

    1,509
  • Joined

  • Last visited

Everything posted by RichardRotterdam

  1. Your code looks fine to me. Only thing that could be wrong is that your variable result is empty or the code before this line has errors. I use javascript DOM allot and your code is correct
  2. Hi, I've tried a couple of rich text editors now. And the ones that i have the best experience with are the FCKeditor and tinyMCE. FCKeditor has it's own free filebrowser to upload images but tinyMCE is much easier to implement to your html page by simply adding a couple of lines of javascript to your page. For a great comparison on these javascript applications check out this site http://www.geniisoft.com/showcase.nsf/WebEditors Hope it helps
  3. Hi, why not use the maxlenght attribute instead saves you all the javascript programming. example: <input maxlength="100" name="address" type="text">
  4. Yup Divs are the way to do it these days Makes it easier to modify you webtemplate and your page loads faster without tables. Just takes a little getting use to thats all
  5. Hi, It all depends on what exactly you want to do with the form. If you want to store the Data you filled in the form you need PHP. The best way for you form layout is without tables and use css instead
  6. Hi, You could use the button tag for buttons but you will need javascript to redirect when you click the button: <script> function jsGotoPage(url){ window.location=url; } </script> <button onclick=jsGotoPage('http://www.google.com')>goto google</button> <button onclick=jsGotoPage('http://www.youtube.com')>goto youtube</button> another option is to use an image for a link this will not require javascript <a href="http://www.google.com"><img scr="button.jpg" alt="button" /></a> <a href="http://www.youtube.com"><img scr="button.jpg" alt="button" /></a>
  7. Hi, So far as I know phpTraid is a bit outdated. Why don't you try xampp instead much easier on the complete installation. Good luck.
  8. [quote author=wildteen88 link=topic=113838.msg462914#msg462914 date=1162663034] When you upgraded you didn't turn the [b]short_open_tag[/b] directive on in the php.ini However I do not recommend you to rely on short tags when coding your scripts, for compatibilities sake. You should use the full tag: <?php or use <?php echo instead of <?= [/quote] What kind of compatibilities could be the problem? I use the short tags to keep my php code to a minimum in my form pages. most of my functions are build in classes to make my code more readable and maintainable
  9. Hi, I just upgraded from php 5.1 to php 5.2. I have my php running under IIS. All of my php seems to work fine besides one thing. When i create a from that looks something like the following. [code] <?php $myPhpString="this is a string"; ?> <form>     <input value="<?=$myPhpString?>" /> </form> [/code] instead of putting the value "[color=red]this is a string[/color]" as text in my input tag it puts <?=$myPhpString?>[/color]" /> in the textfield in my browser with tags and all. Anyone know what the the trouble could be? thnx
  10. Hi, I just answered how the get the gd extension to work same goes about any other php extension just follow the steps. [url=http://www.phpfreaks.com/forums/index.php/topic,111859.0.html]http://www.phpfreaks.com/forums/index.php/topic,111859.0.html[/url] at the end it could be that you need to set the permissions to the folders correcty. good luck
  11. Hi, Dont know how to do it for your server but this is how 2 do it under windows. I think there is not much difference. 1. go to the following url [url=http://www.php.net/downloads.php]http://www.php.net/downloads.php[/url] 2. download "[color=red]PHP 5.2.0 zip package[/color]" 3. when downloaded open the zipfile and look for the file named "php_gd2.dll" 4. copy this file to your php folder something like ([color=red]C:\Program Files\PHP\extensions[/color]) or where ever your extension directory is. 5. locate your [color=red]php.ini[/color] file and open it. 6. search for the following line "[color=red];extension=php_gd2.dll[/color] " (line 641)   and uncomment it(remove";")   if this line reads "[color=red]extension=php_gd.dll[/color]" just rename it to "[color=red]extension=php_gd2.dll[/color]" 7. also change the [color=red]extension_dir = ".\"[/color] to extension_dir = [color=red]".\extensions"[/color]or what ever your extensions directory is (line 520) Hope this helped.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.