| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| Questions... | |
|---|---|
| Tweet Topic Started: Jun 28 2005, 05:55 AM (386 Views) | |
| RenaH | Jun 28 2005, 05:55 AM Post #1 |
![]()
Product Might Contain Lame
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I'm kind of a newb at coding But here are my questions: 1) How can I get a button to change the contents of a textbox or label? eg: The label starts at 0, when a button is pressed it adds 1 to the value. 2) How can I restrict the same IP from making a change to the field for a certian amount of time. eg: 127.0.0.1 has made a change to the field once and I want to prevent the same IP from making a change fo a week. 3) Would you use Javascript for the above? Thanks. |
![]() |
|
| Jory | Jun 28 2005, 06:29 AM Post #2 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
For the first you could use both JavaScript and PHP, I think. The second would be done in PHP. I can take a go at the second if you want. |
![]() |
|
| RenaH | Jun 28 2005, 06:40 AM Post #3 |
![]()
Product Might Contain Lame
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Hum, sure why not, I kind of guessed it wouldn't be Javascript ![]() What functions would I need for the first one? |
![]() |
|
| Jory | Jun 30 2005, 12:49 PM Post #4 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Ok, I hope this will do. (Just rename to whatever_you_want.php) |
![]() |
|
| RenaH | Jul 1 2005, 12:41 PM Post #5 |
![]()
Product Might Contain Lame
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Looks confusing, lol, thanks ![]() Where is says "Your Code Here", could that be Javascript? Or does it have to be PHP? |
![]() |
|
| Jory | Jul 2 2005, 02:31 PM Post #6 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Well, it should be PHP, as JS wouldn't cause the page to reload. If you want the script of question 1 in there, I can edit it to include something that does that if you want. |
![]() |
|
| RenaH | Jul 3 2005, 09:07 AM Post #7 |
![]()
Product Might Contain Lame
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
That would be cool
|
![]() |
|
| overulehost | Jul 3 2005, 11:31 AM Post #8 |
|
Member
![]() ![]() ![]()
|
just do a search at hotscripts.com for that snippet of code |
![]() |
|
| RenaH | Jul 3 2005, 01:40 PM Post #9 |
![]()
Product Might Contain Lame
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
True but code sites give me a headache, can't find things properly >.> |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Technology Chat · Next Topic » |
| Track Topic · E-mail Topic |
5:29 PM Jul 11
|




![]](../../../../0/1/0/p601690/pipright.png)




5:29 PM Jul 11