Search:
Type: Posts; User: VBAssassin
Search :
Search took 0.01 seconds.
My tone! And what was wrong with my tone!? :rolleyes:
Just kiddin, nice find on the tutorial by the way ;)
Kind regards,
Scott
You need to learn HTML first, not PHP! Look up how html forms work...
Kind regards,
Scott
Hello,
Easiest way to stop the form sending again when pressing F5 (not when clicking back in the browser) is to just do a HTTP header redirect to itself with any confirmation message (if you want...
Looks good to me :/ only thing i can think of is the data isn't sanitized:
http://php.net/manual/en/function.mysql-real-escape-string.php
Add that around the $_POST vars and then try. For example...
Baxter, NogDog has written the code for you. Just play with that and you will learn the answer to what you are asking...
Have to agree with NogDog on the using PHP DOM class. Also i will second the "not writing PHP to write HTML".
What real advantage is there in doing what you are doing other than creating more work...
I think $_GET would be best for a persistant solution & use AJAX for a better user experience.
To be honest wit you, i'm still not really sure what the heck it is you're trying to do :/ but at least you have sorted it now :)
Errrrm... run it and find out maybe? :/
Would have thought mysql would have returned an error for using AND with SET :/ something worth knowing ;)
You can force a download using a content-disposition http header via PHP. Maybe use that download.php file in conjunction with AJAX?
Just remember that search engines may not see the pages using sessions... since google bot for example doesn't just use ONE ip address and session to index a site :(
Kind regards,
Scott
Please don't post the same question is multiple boards... this is an exact copy of the one found in the PHP board.
Kind regards,
Scott
PHP is a server side language, so the problem is likely to do with the data that is returned from PHP. It's not that the JavaScript isn't compatible with PHP, it's maybe that the data being returned...
The & means something in URL's... you need to use rawurlencode() eg:
dsadsdas.com?title=<?php print urlencode("Window Reflection • 1985"); ?>&blabla=bladeda
Kind regards,
Scott
HTML and JavaScript have secruity restrictions when accessing files on the users computer.
You would be better off using something like a Java Applet or similar technology.
Kind regards,
Scott
Wrong board, this is logical, html wont solve this.
For the best result you need a server side language like PHP, Python or Ruby.
Kind regards,
Scott
Look at document.getElementById("ID here")
And look at .checked
To set a value just use .value
Better still, use a JS Framework like jQuery or Prototype which will make this job easier.
Kind...
Hello,
Use ionCube to encode the PHP code... you can even sell license files for the code and when the license expires the site goes with it until you issue them with another license file! Here's...
I've tried the FCKEditor (think it's changed to CFKEditor or something like that now) but it was very buggy,
The one i tend to use most now days is the "MCE Editor". Much better programmed (better...
Yeah, use regular expressions to validate the email address is in the correct format.
Google will give you a million examples.
Kind regards,
Scott
<?php
function addFriend($friendID, $userID) {
$userID = getID($userID);
$friendID = getID($friendID);
//execute the query and make sure it runs error free
if ( ! mysql_query("UPDATE...