www.webdeveloper.com

Search:

Type: Posts; User: neilemrich

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. I don't know off the top of my head how you would...

    I don't know off the top of my head how you would stop this. I did a quick google but results seem mostly concerned with how to stop it the other way around - when someone frames your site. I would...
  2. Replies
    4
    Views
    2,027

    Do you mean you used javascript not java? Any...

    Do you mean you used javascript not java? Any inline updates to the page will have to use javascript. If you have to do it with php you would have to have the form submit first and then PHP could...
  3. The main problem would be if you didn't want the...

    The main problem would be if you didn't want the iframe to interact with the parent or if you did. Attempts by javascript to do so are blocked by some browsers to prevent cross site scripting hacks....
  4. Replies
    0
    Views
    1,308

    Optimising order by with match against

    So I'm trying to optimise a query which looks like the following:

    select * from table1
    join table2 on field
    join table3 on field
    where match(table2.field1, table2.field2, table2.field3) against...
  5. Replies
    17
    Views
    2,899

    One of the reasons I like codeigniter is that you...

    One of the reasons I like codeigniter is that you can use built in functions like the form helper but also you can just write the form in the view. It's a lot more flexible in that respect than a lot...
  6. You could try ereg: ereg("(\[[a-zA-Z ]*\])",...

    You could try ereg:

    ereg("(\[[a-zA-Z ]*\])", $string, $return_array)

    String being the string of data and the return_array is the array to put the results into. This is normally used for...
  7. Replies
    17
    Views
    2,899

    If you are looking at frameworks I would suggest...

    If you are looking at frameworks I would suggest looking at http://codeigniter.com/ which is my favourite and quite simple to use so a good starting place.
  8. Replies
    5
    Views
    730

    It's probably because your array is all lower...

    It's probably because your array is all lower case where as the date function will return a capitalised day.

    Try it with capital letters


    $days =...
  9. Replies
    13
    Views
    2,398

    Indeed, it is worth considering.

    Indeed, it is worth considering.
  10. Replies
    13
    Views
    2,398

    Well if you were worried about people not having...

    Well if you were worried about people not having javascript running then you could have the javascript degrade gracefully so that the javascript will send the form to the right place and if not it...
  11. Replies
    13
    Views
    2,398

    I just meant that maybe you would need to put ...

    I just meant that maybe you would need to put
    return false; after the ajax call to stop the form submitting if the ajax page didn't have time to update the data. If though it's all being saved...
  12. Replies
    13
    Views
    2,398

    I'm thinking that you could just put the...

    I'm thinking that you could just put the following in your form:


    <form onSubmit="new Ajax.Updater('your_div', 'record_data.php', {parameters:Form.serialize(document.data_form), asynchronous:...
  13. Replies
    13
    Views
    2,398

    I tend to use the scripts from script.aculo.us...

    I tend to use the scripts from script.aculo.us for my ajax but just prototype should do for this.

    You could use the Ajax.Updater function to load a page into an invisible div that saves the data...
  14. Replies
    13
    Views
    2,398

    There a a couple of ways I would think about...

    There a a couple of ways I would think about doing it. The simplest way doing something like saving the variables and loading the page with a new form of hidden variables to post to the merchant and...
  15. Replies
    2
    Views
    774

    So you're looking for something like this: ...

    So you're looking for something like this:



    foreach($phpobj[value][items] as $link) {
    echo '<a href="http://'....
  16. If you've used the php time() function to get the...

    If you've used the php time() function to get the timestamp then it is in seconds so with the difference in seconds it's fairly easy.
  17. Replies
    1
    Views
    2,090

    I don't have leopard but whenever I've done it...

    I don't have leopard but whenever I've done it I've needed to activate
    AddModule mod_php4.c part in the conf file as well. Adding index.php to the DirectoryIndex section is also a good idea.
    ...
  18. I don't think there are any similar examples...

    I don't think there are any similar examples around but it would look something like this:



    <div id="menu1">
    <a href="javascript:void(0);" onClick="new Ajax.Updater('menu2',...
  19. $array[(count($array)-1)] would reference the...

    $array[(count($array)-1)] would reference the last value in the array
  20. I use the scripts from http://script.aculo.us a...

    I use the scripts from http://script.aculo.us a lot which are based on the prototype ajax functions.

    How it works is you can just use the function 'ajax.updater()' to load another page into a div...
  21. Thread: PHP Editor

    by neilemrich
    Replies
    25
    Views
    3,050

    I use Coda which is great but it's only on mac

    I use Coda which is great but it's only on mac
  22. Replies
    7
    Views
    773

    No problem ;)

    No problem ;)
  23. Replies
    7
    Views
    773

    ok try this $arr[0]=array('a', 'a');...

    ok try this


    $arr[0]=array('a', 'a');
    $arr[1]=array('a', 'b');
    $arr[2]=array('a', 'c');
    $arr[3]=array('a', 'd');


    foreach($arr as $arr_element) {
  24. Replies
    7
    Views
    773

    Array merge (http://php.net/array_merge) would...

    Array merge (http://php.net/array_merge) would take care of most of that except I think you would get all occurrences of the letter 'a' but I don't know of a built in function that would do it all...
  25. Replies
    6
    Views
    885

    You can to make a unique key from multiple...

    You can to make a unique key from multiple fields, I often do
Results 1 to 25 of 33
Page 1 of 2 1 2
HTML5 Development Center



Recent Articles