LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 04-22-2005, 05:13 AM   #1
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
HTML/PHP question


I'm trying to improve some stuff in base (a snort addon).

I need to have a checkbox, in a form, that will enable/disable a text field.
If the checkbox is checked, you may write to the text field. If not the the text field is disabled.
Can I do that in html/php or do I need javascript, or anything like this.
PLEASE,PLEASE HELP!!!!!!

I don't know much about about web-programming and I don't like it either. I found it easy to change some basic stuff in php (because the syntax looks like C, my favorite language).
 
Old 04-22-2005, 05:55 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
You could do it in php and html but it would require the page to be reloaded. If you do it with javascript it will be done on the client side.
 
Old 04-22-2005, 11:42 AM   #3
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Original Poster
Rep: Reputation: 52
Quote:
Originally posted by david_ross
You could do it in php and html but it would require the page to be reloaded. If you do it with javascript it will be done on the client side.
Thanx for your reply.
To force reloading I would have to use javascript. I haven't found a way to do this without javascript, and i don't want to add javascript in a project that is written only in php. SO I just put there the text input and if it is posted blank, I ignore it. Thanx again for your reply.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
html into php charnel Programming 7 08-30-2005 10:47 AM
HTML fighting PHP aciesd Linux - Software 3 07-16-2005 08:05 AM
Php isn't working in HTML 60s TV Batman Fedora 2 05-24-2005 08:35 AM
Simple PHP / HTML frames question Mq2004 Linux - Software 2 05-04-2005 10:36 AM
html to php? help me please!!!!! trscookie Programming 4 01-24-2005 06:36 AM


All times are GMT -5. The time now is 08:48 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration