Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
Why not just add a link instead of a button. That would be much simpler.
-
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]
-
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).
-
[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.
-
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)
-
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.
-
Like [url=http://digg.com]digg.com[/url]'s comment system. I agree.
-
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.
-
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.
-
[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.
-
Yes. Like you would with $_POST['varname'] and $_GET['varname'].
-
http://w3schools.com/tags/tag_map.asp http://w3schools.com/tags/tag_area.asp
-
[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).
-
Store uploaded file as blob or in folder?
Daniel0 replied to Accipiter's topic in Application Design
I believe there is a limited number of files and folders a folder can contain in *NIX systems, not sure about Windows though. -
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).
-
[SOLVED] Programmers Assistant version 2.5
Daniel0 replied to Ninjakreborn's topic in Beta Test Your Stuff!
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. -
Store uploaded file as blob or in folder?
Daniel0 replied to Accipiter's topic in Application Design
Just a minor correction... you shouldn't write [tt].jpg, .png, .gif, [u]etc.[/u][/tt] when there are no more options. -
Yeah, I suppose I'll have to do so.
-
Cant see specail chars (æøå) in my php mails
Daniel0 replied to elnino_php's topic in PHP Coding Help
Try UTF-8 instead. That might work. -
[code]$input = array_merge($_POST,$_GET);[/code] ;)
-
You might want to generate the menu items depending on your user status/login status.
-
http://www.cssplay.co.uk/layouts/index.html The "'Fixed' layout version X" should show you how to do it.
-
You could configure Apache to treat .html files as PHP files.