-
Posts
4,362 -
Joined
-
Last visited
-
Days Won
11
Everything posted by Zane
-
Use a zipcode from database to fill in link to weather report
Zane replied to KitCarl's topic in PHP Coding Help
echo ' Weather'; -
I had an unexpected TString once.. it took me forever to find it. Turns out it was on line 123 and I was missing a semicolon.
-
why don't you make var_err a private var. private var_err; // Then later on $this->var_err = true; . . . //in the error() function . . if($this->var_err) return "error"; else return ""; I'm pretty sure var is deprecated too.
-
Having an All check box with multiple values passed into the array?
Zane replied to KitCarl's topic in Javascript Help
something like that function checkUncheckAll() { for(var i=0; i if(inputs[i].type == 'checkbox') { // check the box or uncheck it. inputs[i].checked = inputs[i].checked ? false : true; } } } -
By using file_get_contents and a little regex.. this is possible.
-
you had it right the first time... using the array solution. Having 15+ differently named checkboxes is by no means a more efficient way of doing this. The reason you get the undefined index is because all of those checkboxes aren't checked.. and you're coding it in such a way that all of them would be checked. By using "interest[]" as the name for all of them.. you can then access them like this $_POST['interest'][0] and $_POST['interest'][1] for the next (checked) one... and so on and so on. It's also good practice (in PHP) to use the isset() function. ... example if(isset($_POST['interest'])) { echo $_POST['interest'][0]; } or ... you can check if it's actually an array too. if(isset($_POST['interest']) AND is_array($_POST['interest'])) { echo $_POST['interest'][0]; }
-
$_POST['interest'][0] should have something in it. If a person checked something.
-
If you seriously don't know the answers to these questions already, then IMHO, you are obviously not qualified for the job.
-
when you name them all the same ... "interest" you have to put braces beside it or else it just overwrites "interests[]" Note: this will give you an array in your POST or GET request.
-
$x = "_" . $this->Method; $field_value = ${$x}[$field_name]; If that doesn't work, then somethings up.
-
This is when the table tag (and all its descendants) comes in handy
-
This how I see your question. The Problem: The Question: Doesn't the problem answer your question? Aren't you already doing what you ask you want to be doing?
-
It's because in order to display something... the display value has to be something.. like "block" or "inline"
-
if the PHP script on that server it setup to receive it, yeah just put the PHP file's location as a form action </pre> <form action="'http://anotherserver.com/phpscript.php'" method="'POST'">< and send a file object with the form
-
Don't overwrite $i.. create another variable for chrissakes. if($i >= 20) $x = 2;
-
you have to tell Javascript what element object your working with. Even though you're passing the id "pallete".. it doesn't mean it's automatically a reference. <br /> function showPalette(Click_Menu) {<br /> Click_Menu = getElementById(Click_Menu);<br /> if (Click_Menu.style.display == "none") {<br /> Click_Menu.style.display = "";<br /> } else {<br /> Click_Menu.style.display = "none";<br /> }<br /> }<br />
-
for($variable = 0; $variable ${"var" . $variable} = $variable;
-
Make Any Webpage Look Like It Was Made By A 13 Year-Old In 1996
Zane replied to Lamez's topic in Miscellaneous
Crazy.. I was only 10 in 96' I'll never forget the geocities era... and angelfire ... and homestead. It did a good job with my site. ...memories.... -
Force users to login before they use internet
Zane replied to hiprakhar's topic in Third Party Scripts
To quote andrewgauger, yes.. You will need to emulate a router. If not, then just use a regular router. "The Wire" I mentioned would go into the uplink of this router.. and you will then need to have an output wire go back to the switch you mentioned before (with the 128 extensions) That's TWO wires. One of which you already have, so using 1 more wire and a router/emulation. You should be a few steps closer to your login implementation goal. -
Force users to login before they use internet
Zane replied to hiprakhar's topic in Third Party Scripts
Well, then this is the wire you could essentially call "The Internet"... since you're only working with the internet lab... right? You could hook this wire to another Windows Server instead of a switch (or linux server) and have it fullfill the switch... making it a Window Server "router"... so to speak. -
SELECT cat.cat_title, maglink.file_type, maglink.link FROM magazine LEFT join magazine_links maglink ON maglink.magazine_id = magazine.id LEFT join magazine_category cat ON cat.magazine_id = magazine.id WHERE magazine.id = {$_GET['employ_id']} something like that might work
-
SELECT DISTINCT ALL??? Seriously? That's pretty much your problem right there... you can't query for EVERY bit of data there is.. JOINed or not and expect it to layout the way you want. Which fields do you REALLY need? To me.. it looks like you only need the title name, it's creation date and whatever links it has.. am I correct?
-
I have always.. always admired 2advanced's work http://2advanced.com check out their portfolio for more of their stuff.. they also have a hosting company http://2advanced.net