RichardRotterdam
Members-
Posts
1,509 -
Joined
-
Last visited
Everything posted by RichardRotterdam
-
I am kind of confused what it is you want to have as result xml. let's say you have the following start xml <security> <perm1> <user>user_id</user> </perm1> <perm2> </perm2> <perm3> </perm3> </security> Now on what conditions and what exactly has to change in this xml file? Can you show a samle of xml what the result could be and under which conditions? Also if it's just the tags output that is incorrect you could use html_entity_decode
-
You'll need javascript for that. These are typical Rich Text Editor functionalities. Try an existing one like Fckeditor, Tinymce or lookup tutorials how to build one yourself I see that the second code block is written in php. You can use php to upload a form.
-
I think you are looking for javascript confirm. here is a tutorial that explains how to do that http://www.tizag.com/javascriptT/javascriptconfirm.php
-
When does the error occure? and what does the xml output look like when you check the source in the browser?
-
before reading everything just one question should the dollar character be removed on permission? $securityXML->permission you are accessing a variable within the object so the $ character should not be there
-
It doesn't matter at all. Javascript is (in your case) client side it all happens in the browser. And PHP is serverside which your browser never gets to see. So you're safe
-
I think you mean javascript examples. Javascript is not the same as Java. You can combine images with tooltips just fine. You can even do it using only CSS
-
XML Parsing Error: junk after document element
RichardRotterdam replied to candice's topic in PHP Coding Help
put this in your function highlightkeyword $keyword=""; if(isset($_GET['search'])){ $keyword = $_GET['search']; } -
XML Parsing Error: junk after document element
RichardRotterdam replied to candice's topic in PHP Coding Help
it's because your get parameter is empty $_GET['search'] -
Later on in your topic you mention an xml file. What exactly gets stored in the $image var? could you show the code with what you assing the value to the $image var
-
Did read all the entries and knew what it was, just didn't knew it was called heredoc and was too lazy too read all the code. Oh well lesson learned.
-
[SOLVED] updating a dropdown list after ajax enabled event
RichardRotterdam replied to fxr's topic in Javascript Help
Looks like you're using a javascript framework. Is that mootools? -
Do you got link of something that looks like what you are trying to do maybe?
-
<style> a img { border: none; } </style>
-
Like the others said you're missing the point from what I see you are trying to achieve the following(correct me if I am wrong) You want to build a form where random people can submit their poems. If form is filled in correctly and without empty fields you want the poem to be stored into the database. If there was something left out that the user left out you want the form to be shown again butttttttt! with the values that where previously filled in already in the fields. So what you are probably looking for is form validation. And it's a lot easier if you just show the list of already stored poems in a separate page. From there you can just put a link "edit" to go the edit page.
-
You will have to build this in seperate parts this is what you need: 1) 1 table with countries 1 table with regions 2) php script does the following: a select query which fetches the regions something like $sql="select from regions where country_id={$countryId}" 3) ajax(javascript) script which refreshes the pulldown of regions
-
to check which version of php you have just run this phpinfo(); if it is 5 or above read you xml like so $xml = simplexml_load_file('yourxml.xml','SimpleXMLElement', LIBXML_NOCDATA);
-
[SOLVED] Function not working with multiple arrays?
RichardRotterdam replied to lpxxfaintxx's topic in PHP Coding Help
This is where it all starts. It means i cannot find the file you are trying to upload. do a vardump or print_r on $_FILES["pictures"] to see if it are multiple images you are sending. print_r($_FILES["pictures"]) And what does your upload form look like ? -
If your server has php 5+ then you could use simpleXML you got the complete or simplified xml file you wish to edit and save?
-
I got tired of xp and wanted to try something new so I installed Ubuntu. I've been happy with it ever since and don't feel the need to go back to a microsoft OS. How ever I do hope people will like windows 7 better then vista maybe it will finally be the beginning of the end for ie6. Even if I don't care much for optimizing for ie6 my employer does.
-
you could add a table absent to keep track of when a teacher is sick
-
It is vague what you want. Is it that you want the path of the requested file without the filename? ???
-
ok so if i have the following form and the values already filled in <form> <input type="text" name="year" value="string" /> <input type="text" name="month" value="string" /> <input type="text" name="day"" value="string" /> <input type="submit" name="submit" value="submit" /> </form> then echo out your $dob when you submited the form it would give you echo $dob;//gives string-string-string why not do something like this if(checkdate($_POST['month'],$_POST['day'], $_POST['year'])){ $dob = $birthyear.'-'.$birthmonth.'-'.$birthday; }else{ //not a valid input action }
-
hey!!! me mum uses ie6 and she doesn't work for the government we wouldn't want her to miss all these smashing png graphics.
-
oh i have to take that back from parsing it to ints to have a valid date you could still do $dob='9999-99-99'; but you could use checkdate() to validate for a valid date and then turn it into date type for the database http://nl.php.net/checkdate