two things - Printable Version
-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: two things (/showthread.php?tid=55274)
two things by Dox on 01-26-2006 at 08:30 AM
Firstly, if I have a php form is there a way so when a user clicks the button to submit it submits but you stay on the same page?
Secondly, I put a php code on one of my pages that writes text to a file called log.txt but it didn't work so one of my friends told me to change my permissions on public_html to 7-5-5. I have done all that but I don’t really understand how permissions work so can someone tell me.
Thanks.
RE: two things by harrisony on 01-26-2006 at 09:30 AM
quote: Firstly, if I have a php form is there a way so when a user clicks the button to submit it submits but you stay on the same page?
That would be via Javascript/AJAX (i think)
quote: Firstly, if I have a php form is there a way so when a user clicks the button to submit it submits but you stay on the same page?
Secondly, I put a php code on one of my pages that writes text to a file called log.txt but it didn't work so one of my friends told me to change my permissions on public_html to 7-5-5. I have done all that but I don’t really understand how permissions work so can someone tell me.
Google is ur friend
http://catcode.com/teachmod/
RE: two things by John Anderton on 01-26-2006 at 09:40 AM
quote: Originally posted by harrisony
That would be via Javascript/AJAX (i think)
Actually php can do that too
RE: two things by Dox on 01-26-2006 at 09:41 AM
somone tell me how
RE: two things by WDZ on 01-26-2006 at 03:21 PM
You could set the target of the form to an iframe, so only the iframe would change.
Or maybe try using the "204 No Content" or "205 Reset Content" HTTP response codes...
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.2.5
|