Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. mcquam

    Reboot fails

    I forgot to say, the contents of /var/run are: Samba screen mysqld landscape dbus motd init.upgraded utmp named
  2. mcquam

    Reboot fails

    When I look for file changes in /etc it lists init but when I look in there I can't see anything that's changed. I noted the boot process as much as I could: fsck from util -linux-ng 2.17.2 /dev/mapper/servername-root:clean /dev/sda1 was not cleanly unmounted, check forced init: (see stuff i...
  3. mcquam

    Reboot fails

    Thanks for your help Noway2. These are the files/folders within /etc that were changed in the 2 days before the fail: init mtab samba network resolv.conf I had a look but I don't have any idea what to look for. When I see samba there I remember changing of the the partitions to ntfs which I...
  4. mcquam

    Reboot fails

    I don't think I did any updates/upgrades but I will have done so in the past few days. It has been a while since I rebooted the server. There was a further error relating to ureadahead but i deleted ureadahead.conf and ureadahead-other.conf which removed the error. I did make a couple of...
  5. mcquam

    Reboot fails

    I have had Ubuntu Lucid server running for a few weeks trouble-free but now I get the following error and boot fails: init: network-interface (lo) pre-start process (741) terminated with status 1 init: network-interface (eth0) pre-start process (744) terminated with status 1 init...
  6. mcquam

    Redirect logic

    OK I think I've got it now. Mant thanks for your help.
  7. mcquam

    Redirect logic

    That's a great idea. I never thought of that, I've started testing it out and I've just pasted a whole form into each question field which I've never done before but it seems to work fine. I'm now faced with the problem of how to get a variable field name. My responses table has a row for...
  8. mcquam

    Redirect logic

    Thanks for your suggestion alan. I have tried this out as a test and it comes back to the same problem: I need to specify some logic somewhere that specifies the next page. Unfortunately my page progression could be 1,2,4,17,18 etc rather than 1,2,3. I can use the database record for the last...
  9. mcquam

    Redirect logic

    @vacunita So what you are suggesting is just to get rid of the index.php switch. I suppose the only benefit from the switch really is to avoid duplicating the header and footer includes every time and maybe a bit of security but maybe that's not such a big deal in this case. Thanks for your help.
  10. mcquam

    Redirect logic

    OK I'm happy that that is not the best way but maybe you can help me with the logic. So I have a switch for each question on index.php. Now I need to select that on the basis of a posted field. Do I use the form action along the lines of: <form action="index.php?p=<?php if ($q1==1) {...
  11. mcquam

    Redirect logic

    Sorry for the delay and thanks again for your help Vacunita. I have been trying to figure out how your solution would work. I need a switch option for each question, which I have already. Do I need a further switch for possible answers within each question?
  12. mcquam

    Redirect logic

    Yes, my questions are one per file. Index.php has this switch: switch ($p) { case 'q01_01': $page = 'questions/q01_01.inc.php'; $page_title = 'Question 1.1'; break; case 'q01_02': $page = 'questions/q01_02.inc.php'; $page_title = 'Question 1.2'; break; I added your code...
  13. mcquam

    Redirect logic

    I'm not sure I understand how it would work to dynamically load the file. Do you mean selecting the next page and then using POST? So the logic would be in the form? So where I have for example: <form action="index.php?p=q01_02" method="POST" /> I would add my 'if $q1=="1"' or whatever?
  14. mcquam

    Redirect logic

    I need to redirect users depending on their response to form input questions (it is a questionnaire and respondents don't have to answer all questions). What is the best way to do it? I have tried a redirect like this: <?php if ($q1 == "1") Header("Location: index.php?p=q01_02"); ?> Where...
  15. mcquam

    POST variable

    Of course! Thanks again.
  16. mcquam

    POST variable

    Thanks, that is most helpful. I have changed the action to GET: <form action="index.php?p=view_recipes" method="get"> <select name="type"> and I have now added hidden inputs: <input type="hidden" name="s" value="' .$start . '"> This gives me a url which is nearly useful but misses out the...
  17. mcquam

    POST variable

    Thanks again jpadie. I will certainly try your pagination. Can you help me out with what my GET statement would look like to accommodate the view_recipes switch along with the category choice and page numbers. Do I need to use separate pages now for example or can I self post?
  18. mcquam

    POST variable

    Can you tell me how I would change the next link for example? Can I do this? '<a href="index.php?p=view_recipes?s=' . ($start + $display) . '?np=' . $num_pages . '"> Next</a>';
  19. mcquam

    POST variable

    Thanks jpadie. I changed to POST because I couldn't seem to combine my page switch: $url = BASE_URL . 'index.php?p=view_recipes'; with the GET syntax on the url. eg. localhost/oldmeg/index.php?p=view_recipes?s=5?np=3 So I changed it by using POST along with &s=5&np=3. Is this wrong?
  20. mcquam

    POST variable

    anyone help?

Part and Inventory Search

Back
Top