-
Posts
2,965 -
Joined
-
Last visited
Everything posted by mikesta707
-
redirect to another php file after closing mysql
mikesta707 replied to cbr_600rr's topic in PHP Coding Help
you should probably echo the javascript refresh with PHP in that case, but without seeing the code I can;t be of any help -
do you still have error reporting set to all?
-
well thats somewhat different. cin is for input from the command line, while HTML sents http requests with POST/GET information. cin is an object (of type istream actually) and when used in conjuction with the input operator (<<) stores the input value into the variable on the right hand side. its equivalent to the function call operator<<(cin, input); the function definition looks something like istream& operator<<(istream& inputStream, string& inputValue);//for string variables When you use a form, the form sends the variables to the script itself (without having to define a variable to hold them) and server side languages can use these variables, and manipulate them as they see fit. cin is very similar to $_GET and $_POST in that you get user input, but the mechanism is slightly different
-
redirect to another php file after closing mysql
mikesta707 replied to cbr_600rr's topic in PHP Coding Help
why not just put the form processing stuff on test2.php? you could also use a javascript or html redirect if you absolutely can't bring yourself to use a header() -
nope, it was installed by default with versions after 5.2. clicky
-
well, kind of. you have to store the user input in a variable as with C++, but PHP automatically stores these values in the $_POST array, so you could have simply done $sum = $_POST['stories'] + $_POST['rooms']; but i just store post variables value in local variables out of habit (and if I want to alter the values, like with trim(), mysql_real_escape_string(), etc.) I'm not sure if this answers your question, but I hope this helps
-
what version of PHP do you have? do you have the filter extension installed on your server
-
LOL what has the world come to
-
there is no form element posted with the name 'getQuotes' and there are many more errors perhaps you meant <?php if(isset($_POST['submit'])) { $storeies = $_POST['stories']; $rooms = $_POST['rooms']; $sum=$stories + $rooms; echo($sum); } ?> and change your form's submit buttons name, ie <input type="submit" name="submit" />
-
did you start your server? is that page in the htdocs or www folder in your server directory?
-
I'm pretty sure that happens when you are trying to use arrays as strings, such as $array = array(stuff); echo $array; without seeing the code that the error occurred on I can't be much help though
-
Should I use PHP for a website with many users?
mikesta707 replied to csteff24's topic in PHP Coding Help
this is a good starting tutorial for PHP. Learn about how HTML forms and PHP interact, learn about GET variables, Sessions, and Mysql and you should be able to figure something out -
update script to display message every 24 hours
mikesta707 replied to kaiman's topic in PHP Coding Help
You could just draw the featured hike from a database, and use a CRON job to update the database -
wow that sounds awesome. i cant wait to pick this up. dragunov's gone huh? that sucks
-
I used to love the .50 cal, but as i got better, I started using the dragunov, which rapes in HC mode. I always used a Desert Eagle with snipers anyway, but that is pretty cool. no more overkill perk? What perks are still in the game?
-
ahh I see, didn't know it was Javascript. since the page doesn't refresh, you won't be able to use php to change the content of sections without a page refresh. you could use javascript
-
they put silencers on snipers!! You have no clue how bad i wanted that in cod4 multiplayer
-
can i see the code that includes pages. if you are using GET to decide what page to include, then you could just use that same value to decide what other stuff to run
-
perhaps you mean salt?
-
I've noticed turning off JScript has some notable benefits.
mikesta707 replied to PugJr's topic in Miscellaneous
.8 seconds is pretty fast regardless. just don't go to attack sites and you don't have anything to worry about -
Can somone donate me a few bucks? only need like 2-3$..
mikesta707 replied to Gayner's topic in Miscellaneous
so you only have 2 dollars and 40 cents to your name? Thats unfortunate -
Yeah you are correct to an extent actually. Sorry I need to brush up on my SEO. Now a days, spiders have less trouble crawling dynamic URLS, However, using static URLS ( or static looking URLS that are rewritten) are a little better for CTRs, perhaps backlinks, and all that stuff will make your rank higher. Blog software like Wordpress do make permalinks for a reason however, I may have been a little misleading in my first post. Google IS getting better at reading static urls (as well as Yahoo, and others) however, so you have a point
-
No, when a spider crawls your page, just assume it is the dumbest possible person in the history of people. WHen you have a dynamically generated page, you need some kind of input to get the contents (IE index.php?id=5) well for spiders, they can't read special characters like that. In fact, the question mark (?) is a stop character for spiders. SO when they read a dynamic link, they don't get to the "juicy" part so to speak. They don't actually read any of the rest of the link. In fact, dynamic pages (to spiders) don't actually exist until a user injects a variable into them (whether that is through a form ,search bar, link, etc.) read up on this clicky for some more information
-
Wow, thats pretty awesome. I would totally switch to google if I could