trq
Staff Alumni-
Posts
30,999 -
Joined
-
Last visited
-
Days Won
26
Everything posted by trq
-
A little of topic, but I have to ask. 1) A big part of Ajax is written in Javascript so that comment makes little sense. 2) Your code doesn't actually use any Ajax either, so your comment is starting to make even less sense. 3) Why are you rolling your own Ajax implementation in GetXmlHttpObject() when jQuery already provides a perfectly capable cross browser compatible API for doing so?
-
Surely it would be quicker to try this, and get an answer for yourself?
-
I recently wrote a SSO web part for Sharepoint in C# using the mechanism I described above via POST so I know it's possible.
-
You haven't described your actual problem.
-
.Net is quite capable of sending POST requests. When you said "scan", I thought you meant they where watching the requests it was making, not scanning through the actual code. It's .Net, can't you compile it?
-
document.getElementById('submitted').innerHTML
trq replied to Pawan_Agarwal's topic in Javascript Help
I understand what it is you want to do, still, you haven't told us your actual issue.- 4 replies
-
- html
- javascript
-
(and 2 more)
Tagged with:
-
Of course it does. Your not recording wether or not this actual page has already been counted or not. I suggest you start another thread if your stuck.
-
session_start(); if (!isset($_SESSION['login']) || !$_SESSION['login']) { header("http://somedomain.com/not-authorised.php"); }
-
Better still, find what is causing the output and remove it. Output buffering has its uses, this hack is not one of them.
-
Can you ping the ip? By the way, it's probably not the best idea to post your username and password on a public forum. You'd best change your password now.
-
You can set this in the headers passed as the 4th argument to mail though doing so will likely make you email look like spam to most clients.
-
Notice: Undefined index: submit in C:\wamp\www\matri\login.php
trq replied to anshu's topic in PHP Coding Help
That is a simple syntax error which you need to learn to resolve yourself. If you can't, we need to see the relevant code.- 4 replies
-
- undefined index: submit
- undefined index: email
- (and 1 more)
-
document.getElementById('submitted').innerHTML
trq replied to Pawan_Agarwal's topic in Javascript Help
And your question is?- 4 replies
-
- html
- javascript
-
(and 2 more)
Tagged with:
-
Warning: mysql_num_rows() expects parameter 1 to be resource
trq replied to thelostdutchmann's topic in PHP Coding Help
Your query is failing for whatever reason and you are doing absolutely no error handling to accommodate it. Check that $query (also a nonsensical name for this variable) is what mysql_num_rows is expecting before blindly passing it in. You can find out why your query os failing by looking at the output from mysql_error(). -
undefined function mb_detect_encoding
trq replied to dontstealmyfish's topic in PHP Installation and Configuration
It is likely that you have edited the wrong php.ini file. Generally, there is two differnt ini's, one for your mod_php implementation and one for the cli. Your php_info page should say what php.ini file is relevant.- 2 replies
-
- phpmyadmin
- apache
-
(and 3 more)
Tagged with:
-
This is quite simple. A user submits a form to a php script that saves the forms contents (the link) to a database. You then have another script that queries that database and displays all this data (links). If you don't know how work with forms, insert data into a database or how to read data out of a database I suggest you start here and here. In fact that entire book is a good read for beginners. http://www.tuxradar.com/practicalphp
-
A browser can not print a page that is not open.
-
The OP said he wanted to study PHP frameworks. Codeignitor is probably one of the worst designed frameworks around. It isn't going to teach the OP anything about good design or best coding practices. I always recommend it (CI) be avoided. The only reason to study CI would be to learn how to not build a framework.
-
You must have missed the sticky at the top of this board? http://forums.phpfreaks.com/topic/150979-this-board-is-not-a-code-repository/
-
A few ways you can do this sort of thing, but one simple way is to create a unique key using a salt that only you know about. In your program, get all the details you are going to send into one string, eg; $s = "username=foo&data=bar"; Hash this string along with your salt and append it to the actual string. $s = "username=foo&data=bar"; $hash = sha1('somesalt' . $s); $s = "username=foo&data=bar&key=" . $hash; Now, on the receiving end make sure that the data within $_GET['key'] equals the entire original string. You can even add a timestamp to this sort of thing so that a request only has a short lifespan before it needs to be regenerated again. This is how we do all our app to app api calls at work, simple, yet effective.
-
Is this normal or should I be concern?
trq replied to Sam46's topic in PHPFreaks.com Website Feedback
According to our analytics (which I trust more than any counter IPB implements) total views of your profile page is only 45, far more realistic. -
Sorry, your issue is what?
-
Is this normal or should I be concern?
trq replied to Sam46's topic in PHPFreaks.com Website Feedback
Not that often they don't.