Jump to content
MakeWebGames

Recommended Posts

Posted

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

Posted

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.

Posted

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 :)

Posted

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?

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...