Hash-Op Posted March 18, 2009 Posted March 18, 2009 Hey dudes & dudettes Firstly, this is not mine. BUt it is open-source so I though this would be nice to share ------------------------------------------------------------------------------------- 1. Create the following folders: img js scripts 2. Create a file called contact.htm in the root folder of your site You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 3. Create the following files in /scripts/ contact.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. xmlHttpRequest.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. *Change the 4 variables in each file! 4. Create the following files in /js/ contact.js You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. functionAddEvent.js You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. xmlHttp.js You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Thats all the files done Now to get the image, go to http://www.gradideck.co.uk/img/loading.gif - save it and upload it to /img/ on your site. Now go to mainmenu.php Find (may not be the entire thing) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add after You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. To add this to your login page, find the register link in the script - I don't recommend this! You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. After that add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. To test it out: http://gradideck.co.uk/contact.htm If you use this, please support me by joining: http://sorcast.com =D Quote
nedved Posted March 18, 2009 Posted March 18, 2009 Re: Ajax Contact Form Nice :) Works Perfectly :D Quote
John99 Posted March 19, 2009 Posted March 19, 2009 Re: Ajax Contact Form function cleanPosUrl ($str) { return stripslashes($str); } Theres no need for that you can just put stripslashes.......... Quote
Dave Posted March 19, 2009 Posted March 19, 2009 Re: Ajax Contact Form Link to were the original script came from would be highly apreciated by the original creator! Quote
Hash-Op Posted March 19, 2009 Author Posted March 19, 2009 Re: Ajax Contact Form Yeah thanks.. I'm trying to find the site I would've had it up if I'd downloaded it from the authors site xD Quote
DELETE ME NOW! Posted March 19, 2009 Posted March 19, 2009 Re: Ajax Contact Form function cleanPosUrl ($str) { return stripslashes($str); } That function is not needed, why have it when you can just stripslashes() okay a function would be okay if you have more in it but you simpley just have stripslashes so there's no need. Quote
POG1 Posted March 19, 2009 Posted March 19, 2009 Re: Ajax Contact Form function cleanPosUrl ($str) { return stripslashes($str); } That function is not needed, why have it when you can just stripslashes() okay a function would be okay if you have more in it but you simpley just have stripslashes so there's no need. it could be expanded on though :) Quote
Hash-Op Posted March 22, 2009 Author Posted March 22, 2009 Re: Ajax Contact Form function cleanPosUrl ($str) { return stripslashes($str); } That function is not needed, why have it when you can just stripslashes() okay a function would be okay if you have more in it but you simpley just have stripslashes so there's no need. Hmm You've got a good point Could anyone possibly explain this? Please? Quote
POG1 Posted March 23, 2009 Posted March 23, 2009 Re: Ajax Contact Form explain it? :S Your the one who put it in lol Quote
DELETE ME NOW! Posted March 23, 2009 Posted March 23, 2009 Re: Ajax Contact Form function cleanPosUrl ($str) { return stripslashes($str); } That function is not needed, why have it when you c function cleanPosUrl ($str) { return stripslashes($str); } That function is not needed' date=' why have it when you can just [b']stripslashes()[/b] okay a function would be okay if you have more in it but you simpley just have stripslashes so there's no need. Hmm You've got a good point Could anyone possibly explain this? Please? + Additional Options... Notify me of replies. Return to this topic. Don't use smileys. Attach: (more attachments) Allowed file types: txt, doc, pdf, jpg, gif, mpg, png Restrictions: 4 per post, maximum total size 250KB, maximum individual size 250KB. shortcuts: hit alt+s to submit/post or alt+p to preview an just stripslashes() okay a function would be okay if you have more in it but you simpley just have stripslashes so there's no need. Hmm You've got a good point Could anyone possibly explain this? Please? Rofl. explain it? :S Your the one who put it in lol Lol @GradiDeck: you put cleanPosUrl ... just for 1 thing when you could of just had stripslashes yeah the function would be good it it had more in there :P Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.