Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. Why not just add a link instead of a button. That would be much simpler.
  2. First of all I'd use a switch: [code]<?php session_start(); // just because you had it, no need for this code if it's the only switch($_POST['step']) { case '1': include 'ListInfo.php'; break; case '2': include 'OptServices.php'; break; // etc... default: // sort of like the "else" in this. it is if the other values won't "work" include 'home.php'; break; } ?>[/code] For the other file (read comments!): [code]<?php session_start(); foreach($_POST as $key => $var) { $_SESSION[$key] = $var; } if(isset($_POST['ListInfo'])) { $errorList = array(); } if(empty($NameForList)) // where does this come from?? { $error[] = "List Name"; // is it supposed to add to $errorList instead of $error? } // more validation if(count($errorList) > 0) { $errors = "<p class=\"error\"><big><b>The Following Errors Were Found, Please Re-Enter:</b></big><br/>". implode('<br />', $errorList). "</p>"; } else { echo "<input type='hidden' value='2' name='step'>"; include_once('headerImage.php'); } ?>[/code]
  3. The line that does the problems is [code]$subject='Contact from '$HTTP_POST_VARS['first_name']' '$HTTP_POST_VARS['last_name'];[/code] Change it to: [code]$subject = "Contact from {$_POST['first_name']} {$_POST['last_name']}";[/code] Note the change from single quotes to double quotes and the change from $HTTP_POST_VARS to $_POST. It was due to wrong syntax. Edit: Also note that just by adding spaces between the assignment operator (the equal sign) and the string makes it look nicer (IMO).
  4. [quote author=tomfmason link=topic=121812.msg502273#msg502273 date=1168527186]I personally like office 2007 but the formats have completely change in several of those apps and they are not really back-wards compatible.[/quote] In fact I guess it would be the "old" versions that are not forwards compatible as Office 2007 has full support for the old formats. And for the topic: It seems like it could be pretty useful. Can't figure out how to get the javascript debugging feature to work though. I like the new way you are able to view the source with the extension.
  5. Great job. Haven't had any problems since the move to the dedicated server. And, yay, the it's back to normal again :D (great job on that too)
  6. I have absolutely no idea, but I think it would be he site owner since (I suppose) he is responsible of what is on his site.
  7. Like [url=http://digg.com]digg.com[/url]'s comment system. I agree.
  8. The ones that are checked will be stored in an array called $_POST['id_packages'] (or $_GET depending on the method). Just loop through it with a foreach loop.
  9. Just a correction... $_REQUEST includes cookies as well, so it's not entirely the same. In my opinion it doesn't really matter if the data comes from a FORM or GET request. Both are controlled by the user anyways.
  10. [quote author=emehrkay link=topic=121835.msg501654#msg501654 date=1168463442] here is the w3's page on it http://www.w3.org/TR/2006/WD-SMIL3-20061220/ [/quote] Guess it can't be a buzz word then. I seems pretty good, but since there isn't really support for it by the browsers there is not much use of it.
  11. Yes. Like you would with $_POST['varname'] and $_GET['varname'].
  12. *snip*
  13. http://w3schools.com/tags/tag_map.asp http://w3schools.com/tags/tag_area.asp
  14. [quote author=ToonMariner link=topic=121539.msg500568#msg500568 date=1168347669] I used one in a cms - one form 2 jobs - action one was to a script to show a preview of what page would look like and action 2 was to commit to the database. [/quote] That's not what he wants. He wants it to be able to have to actions simultaneously (that is at least how I read it).
  15. I believe there is a limited number of files and folders a folder can contain in *NIX systems, not sure about Windows though.
  16. I believe Ubuntu's wiki says the that and since Kubuntu is just Ubuntu with KDE instead of Gnome it will work (providing it's correct).
  17. The reason of the directory "assumptions" might be that he initially intended it to be a framework which sometimes (or always?) forces a specific structure on you.
  18. Just a minor correction... you shouldn't write [tt].jpg, .png, .gif, [u]etc.[/u][/tt] when there are no more options.
  19. Yeah, I suppose I'll have to do so.
  20. Try UTF-8 instead. That might work.
  21. Loads in FF, IE and Opera for me. No problem here.
  22. [code]$input = array_merge($_POST,$_GET);[/code] ;)
  23. You might want to generate the menu items depending on your user status/login status.
  24. http://www.cssplay.co.uk/layouts/index.html The "'Fixed' layout version X" should show you how to do it.
  25. You could configure Apache to treat .html files as PHP files.
×
×
  • 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.