Disable Checkbox
I have a checkbox that I set by php code to be either "checked" or "".
I want to disable the ability of the user to check or uncheck it. I
tried "readonly", but that didn't work.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Disable Cookie
I am using cookie to hide a variabe in send.php3 as following:send.php3: PHP Code:
Can I Disable $PHP_AUTH_PW?
Is there any way I can disable the setting of the environment variable $PHP_AUTH_PW? I'm authenticating via LDAP, and don't need (or want) the password available to PHP. I also don't need $PHP_AUTH_USER; the current authenicated user is available in $LDAP_USER.
Disable (grey Out) A Button.
Experienced programmer but new to PHP. Moreover I'm to use PHP with Xoops on top (this adds object orientation?). I don't seem to find a xoops Usenet group? Whatever the case (and presumably a Xoops property): how does one disable (grey-out) a button?
Disable Right Click In Opera
In my website there is requirement to disable rightclick. I am providing the code and it is working in I.E ,Netscape and Mozilla.But not working in Opera browser. My code is <body oncontextmenu='return false;'> The above single line code is working very fine in the above browsers not in Opera.
Disable Phpinfo In Php3
In PHP4 there is the posibility to disable the use of phpinfo() by putting "disable_functions = phpinfo" in the php.ini-file. Is this also possible with PHP3 (in php3.ini) or is there another way of disabling this function?
How To Disable PHPSESSID From Posting In URL
I don't want the URL to display this info. I never notcied this being displayed before but all of a sudden it seemed to pop-up. I don't host my own server so any access to the php.ini file is not possible. Any ideas out there?
How To Completely Disable Openbase_dir?
I'm using php 4.3.4 and have an intermitent problem with gallery (gallery.sourceforge.net) regarding the open_basedir restriction in php. The error I am getting is: ------ PHP Warning: (null)(): Failed opening '/home/httpd/vhosts/mydom.com/httpdocs/gallery2/main.php' for inclusion (include_path='.:/usr/share/pear') in Unknown on line 0, referer: http://mydom.com/gallery2/main.php ------ I have disabled safemode and open_basedir in php.ini and have verified through a phpinfo() call that they are disabled. Actually, open_basedir is reported as being set to "no value" and safemode is reported as disabled. The strange thing is that this does not happen every time i access this page. It is only 1 out of 10 times and usually it is the first time i access the page for the day(but not always). I have restarted httpd and the server just in case. I also checked .htaccess but it shouldnt matter since phpinfo() says it is not set. This is baffling to me! If I could rip this feature out I would. It was installed by default on my dedicated server.
How Do You Disable The Close (x) On A Window
I'm running a PHP script on page1.php that takes a few seconds, once it has run the page then redirects to page2.php automatically sending variables . However, if the user shuts page1.php by pressing the X on the top right of the screen, the redirect doesn't happen!! Does anyone know how to disable the X and stop the page being closed down please?? or another solution??
How Do I Unclock The URL/disable Frameset?
I have a few websites out there and set up alittle script for my friends to auto register subdomains for their affiliate sites. Problem is, some affiliate programs don't allow URL MASKING and I can not figure out HOW to disable it within the script. Could someone take a look at this and help me? I'm trying to disable the frames in forward.php, along with whatever it gets linked to (i'm very new to this, so i included a link to whole script incase there is more then just forward.php I need to edit). Code:
Disable The Values In Address Bar??
Am trying with a social network site... i want to disable the values in address bar which are passing as string variables, My pages are included in the index page.. and my values are passing like that... by changing the values in address bar my page is changing.. How can i solve this issue... i think anyone can change my site using this address bar.. how could i prevent this???
Disable Right-click On Mouse
Is there a php script that wil disable the right-click on mouse or maybe disable the copy and paste feature of the browser? because i have a client, wherein he wants to prevent public viewing his website from copying his website content?
Disable Command Line Arguments For Php-cli
i have been trying to disable the -n and -c arguments that you can use with php from the command prompt. this is because these features can effectively disable my php.ini which has a whole mess of disabled_functions (that i want to ensure remain disabled). my best idea for going about doing this so far has been to download the source for the newest php, with hopes to compile my own which will ignore arguments other than a filename. so far the closest i have got is to the the zend_API.c which has the follow function: Code:
Disable .php Handler For A Specific Browser,
I would like to know if there is a way to remove/disable .php handler when the request come from a specific Browser. I ask this because I use dreamweaver / webdav to edit my .php files. But when I try to open the .php file in dreamweaver, what I see if the result of the .php executions, not the .php source files. I know that you can create an Alias location "/dav", and disable the ..php handler for this location. It's a solution, but not the best I think. It would be better if we can disable .php runtime where dreamweaver Get the files.
Disable Magic_quotes_gpc In A .htaccess File
How do I disable magic quotes via .htaccess? I put the following file in my webroot, but it does not disable magic_quotes_gpc (according to phpinfo(), both the local and master value are still "on") <IfModule mod_php4.c> php_value upload_max_filesize 8M php_value magic_quotes_gpc 0 </IfModule> The change to upload_max_filesize works (master is 2M, local value is 8M, according to phpinfo())
Disable Backbutton - When Page Has Expired...
I have this on the page: <?php header("Pragma: no-cache"); header("Expires: -1"); ?> but I want it so, that when the user goes back, (s)he might not be allowed too - say the session has expired. How can i achive that?
Disable Coding In Textboxes/Textfields
Is there a way to disable PHP, HTML, and the sort in textboxes and input fields? There are things called SQL Injections which are usually used in an url or input field to steal data from the database.
Why Does PHP As Apache Module Disable PHP's Java()?
My site was suddenly running HTTP authentication and was faster. But if this was a problem from the past, now a entire part of my site does't work because my calls i had to function Java() now generate this output: Fatal error: Call to a member function on a non-object HTTP authentication(PHP as Apache module) versus Java Virtual Machine what's the relation between them, how can i restore Java() to work properly. Is it on httpd.conf? why does not PHP call Java extension if it is installed on Apache as a module?
Disable Safe Mode Without Loss Of Security ?
I'm trying to disable safe mode from my php installation. First because this functionality will be removed in PHP6, and because it's very restrictive and it's giving me headaches when configuring frameworks and other applications. Moreover, it's said on the php website that the safe mode solution is not a good thing... I'm looking for a tutorial which indicates what to configure on a server in order to have a secured installation of PHP, but without safe mode. I can't find it...
Enable/disable Html In Form Processing
I've got a form, where it submits some info and adds it to a txt file. The file is then displayed on the front page of my site; however, there is a security problem i'd like to fix dealing with html. How would you go about disabling the use of html in a form?
PHP Script To Disable/enable Internet Access
We are finally getting DSL again... but our PC is in the living room... and the youngest has figured out that if he hits the right keys... he can bring up Internet Explorer. All is fine and dandy right now, but come next week... that things wont be so dandy. I am setting our LInux router/server back up soon, and would like a quick, easy way to enable and disable our internet access. What I would like to do is have a simple PHP page that says (iff network status = inactive) Your Internet Access is DISABLED Enter passcode to enable internet access [TEXTBOX] Then [OK] so on clicking "OK" if password = suchandsuch then run script" "/sbin/network start" or whatever the script is and refresh the page then iff network = active Your Internet Access is ENABLED [DISABLE] upon clicking of "DISABLE" run script /sbin/network stop and refresh the page Something to that effect.
Disable Passing Arrays In Query String?
Is there any way to stop PHP from turning a query string like this: ?var[] into an array when it is read by $_GET['var']? I have quite a few input validations that are easily screwed up by this strange (and apparently undocumented???) feature...
Disable Submit Button If Text Field Is Empty
I am unsure if this must be done with Ajax, or if it can be done with PHP. I have a simple search page where I want the submit button to be disabled if there is nothing entered in the text field, and once something IS entered, then the search button is enabled. I was thinking Ajax, because I am looking for it to be real time and I am not sure if its possible with PHP as I am just a novice when it comes to certain things. So the button is always disabled when there is nothing, and enabled when the user enters something. And lets say the user enters something and removes it, then the button disables again? Is this possible to do with PHP and if so, could someone please help me tackle this . Code:
Mail() Function Blocks Webpage For Nameserver Lookup ! How Can I Disable It?
When mail() function reaches a wrong email address or a down domain name (which it can not resolve it to its IP address) it blocks PHP page for a while. How can I disable this behaviour? I was able to disable this in mail clients such as Pine by setting an option that tells "Do not make DNS lookups before ading mail to queue" . Is there anything in PHP for doing this?
Checkbox
I am trying to make a form with 16 different checkboxes that pass on to an email. Someone got me started with the form but I'm not sure how to incorporate it into my php file. <INPUT name=other_needs[] type=checkbox id="other_needs[]" value=reception>Reception<TD> <TD><INPUT name=other_needs[] type=checkbox id="other_needs[]" value=Lunch>Lunch</TD> How do I refer to the checkboxes in my php file to include the results in the email the script sends?
Checkbox And SQL
What im stuck with at the moment is how to update the SQL database with the new information acquired from a set of check boxes. What i´ve done so far is to create the checkboxes and got the information from a table which checkboxes is needed and pre check it if it is already enabled. i have two rows in the database 1. Module_Name (name of a module) 2. is_enabled (is the module enabled 1 or 0). Code:
Checkbox Value
if i have 10 checkbox for customer interest.. how do i save that to database?? need to create 10 fields in the database?? after save.. how to display back when customer view his data.. if i choose swimming.. next time when i view back.. how to show swimming in the checkbox being checked
Checkbox
I have a database column which either holds the value 1 or 0. Now if there is a 1 in this column I want to produce a checkbox button that is ticked, and if a 0 then nothing ticked. So I thought it would work like this: <input name="dayTwo[]" type="text" id="dayTwo" value="<?php echo $databaseArray['d2']?>" size="6" /> However, it does not seem to work?
Checkbox
I am creating an email form with checkbox included. And I need the checkbox to be ticket when I enter the form though links. IE List of checkbox's checkbox 1 checkbox 2 checkbox 3 checkbox 4 say I was another page and I click on a link (call the link checkbox 1) I would like the checkbox to be ticked automatically. I know this makes no sense but I hope you get the idea.
Checkbox
i have a checkbox array of some unknown size.its a dynamic array created. i want to know out of all checkboxes how many r selected and which are they? and then insert the data in the table based on that. i hav written the code as follows:- <? $no=0; $friendname= $_POST['friendname']; $storecount=$_POST['storeid']; while($no<$storecount) { if($friendname[$no]) { $sql = "INSERT INTO groupfriends (groupid, username) VALUES ('$stid[$no]', '$friendname[$no]')"; $result = mysql_query($sql) or die('Query failed. ' . mysql_error()); } $no=$no+1; } ?> i dont think this will work.it will add all the checkoxes data to the table. i want to insert only of those which r selected.
How To DISABLE "BACK" When Doing Forms
I want to be able to disable the back button when someone submits a form. Right now i have a page like, questions.php When the person submits it, it inserts into database. But my problem is this: After the person submits the form, if he/she clicks back and then submits again, it will screw up the data in the DB. How would i be able to do with this php, perhaps hidden tags? session?
Checkbox Values
Basically, I have 2 checkbox's which are printed out for each record within my table. On the next form, each checkbox is tested for being "checked" and the database is updated accordingly. This is fine. My problem is that I dont want users to be able to select both check-box's at the same time. After talking to "andnaess" on an earlier post and doing some reading, I decided upon using some javascript to do what i wanted. I have found a script which does exactly what i want, and i am now incorporating it into my original php script. I am having problems assigning a name and value variable with an array to my checkbox's. Is this possible, or have i got the wrong idea?
Checkbox Confusion!!!!
I have page1.php that displays some articles from a database by the condition 'on' What I want to do is have checkboxes so that the articles you check won't be displayed on the web page the next time it's brought up. Essentially turn the articles checked to the 'off' condition and leave the articles that are not checked to the 'on' condition. When you hit the submit button I want it to go to a page2.php to run an update query to change the 'on' condition to the 'off' condition for the specific articles that were previously checked. (My Primary Key in the database is Article_Number) I think i have page1.php correct (don't quote me on this!) <input type='checkbox' name='Display_Article' value='off'>"; But I'm completely lost on what to do for the page2.php if($submit) { for ($i=0; $i<count($Display_Article); $i++) { //echo "<li>".$Display_Article[$i]."</li>"; $sql="Update articles set Display_Article='$Display_Article[$i]' where Article_Number='$Article_Number'"; $result=mysql_query($sql) or die ("Update Query Failed"); }
Checkbox Problem?
I am having trouble with checkboxes. How do you have a checkbox that it it is not checked it will still allow the form to be submitted. I am using checkboxes now, and if all the checkboxes are not checked, then it says that each of the ones that aren't checked are undefined variables why?
Problem With Checkbox
When i click on submit then the table wont be updated. I wanted to try to update the colom aw with the desired awardsid but i also wonder what happens if i have selected 2 or more checkboxes and whats entered then in the table aw, 1 & 2 or ? PHP Code:
Retain Checkbox Value
Just a quick question regarding the way to do something rather than the actual code :- I have a page which has some links that go through to a HTML form and each link will check a certain checkbox. I want the form to retain the checked status of any checkboxes that are set to checked when the user goes back to the previous page. Would this be best done using sessions or is there another way I could use? I don't mind using sessions as I have used them before. I would like to avoid using cookies but I don't really have any strong objections to using them, it's just that they're not 100% reliable (but then, what is?).
CheckBox Question
i started a php site in dreamweaver and i try fill data into MySql database. i set up a page with a form and i can fill in all the fields. just for one field, i like to have several checkboxes. every checkbox has a value, and they should fill the same field with their vale when checked. i also want to keep my text box, so i can write additional information. at the moment, when i click more than one checkbox, only the value of the first checkbox appears in the database. also, if there is already some data in this cell, it delete previous data, but i would like to keep it. preferably it should just add to information allready in the database.
Checkbox Problem !
I try to display the multiple checkbox in my form and the quantity of this are depends on how many records in my database (usually the record is more than 500). So how big space it takes to display. And to solve the spaces problem, i thing i better display with horizontal scrollbar to save the space. But i don't know to do it.
Checking A Checkbox
Is it possible to preset the values of form elements with php - so that when the client gets the page certain boxes are checked or completed - on the fly - based on their HTML id. Javascript has a way of doing this - but i need the functionality of PHP too - so if i can move the whole thing over to php it owuld be better . javascript example - document.forms['form1'].elements['radiobuttonno'].checked = true;
Checkbox Array
checkbox arrays do not hold their respective positions as do other field arrays that are established to store the contents of selected records. The problem is that when you "uncheck" one of the elements and then repost, that array element disappears and the whole array collapses and renumbers itself with only the remaining "checked" ones -- simply useless when dealing with records in a table where all the field array elements should be in sync. I consider it a bug -- why does the array have to collapse? Why can't it just hold a null value and keep its position? The only fix is to never hold checkbox values in an array. Store them in individual variables numbered like an array, then do an "eval" to retrieve the contents. Here's the whole thing in action: Code:
Checkbox Not Between Date
I get a database for « News » on Internet. Side Admin, I would like a form to know witch "News" are Online or not. In my database mysql I get : Date_start and Date_end Outside this date, the « News » are unvisible. In my form I put a checkbox « Off_line » If it's check, all the news outside Date_start And Date_end must be visible. I tryed like this In Head : <?php if (isset($HTTP_GET_VARS["date_off"])) { $ date_off =$HTTP_GET_VARS["date_off"]; } else { $ date_off =0; } ?> In my form for checkbox : <input <?php if ("CURRENT_DATE NOT BETWEEN $row_R_news['date_start'] AND $row_R_news['date_end'] ",1) {echo "checked="checked"";} ?> name=" date_off " type="checkbox" id=" date_off " value="1"> For my request sql : SELECT t_news.* FROM t_news WHERE $date_off
Checkbox Array
I have a list of checkboxes. The name for each is being pulled up from a database. Each (minus irrelevent or implicit code) looks like this ... <input type=checkbox name=assnid$assnarray[assnid] value=1> or...peaking at the HTML, the list looks like this: <input type=checkbox name=assnid1 value=1> <input type=checkbox name=assnid2 value=1> <input type=checkbox name=assnid3 value=1> and so on... Anybody know how to post the selected checkboxes into $assnidarray? For example, assuming all are chosen, $assnidarray would be (1,2,3,...).
Checkbox Array
I have a checkbox array containing the id of a record in a MySQL database. The checkboxes are created dynamically depending on what is stored in the database. I want to send the checkbox array to my stop_subscriptions.php file, running the code on all checked boxes, however I dont seem to be able to actually send the array, I was hoping that someone could steer me in the right direction. <?php $sql = "SELECT i.type, i.title , s.inj_id FROM inj_subscription s, injustices i WHERE s.member_id = '$user' AND i.inj_id = s.inj_id AND s.inj_id IS NOT null" ; $result = mysql_query($sql); $row = mysql_fetch_assoc($result) ; if ($row) { echo "<div><span>Specific Subsriptions:</span><br/>" ; $table_start ='<table width="90%" table name="table2" align="center" cellspacing="0" border="0"> <tr> <form method="post" action="stop_subscription.php"> <th width="20%">Type</th> <th width="70%">Title</th> <th width="10%"></th> <input type="submit" name="Submit" value="Submit" style="font-size:10px"/><p> <input type="hidden" name="stop_subscription" value="1"/> </form> </tr>' echo $table_start; $rownum = 0; while($row) { $rownum++; $style = rowcolor($rownum); $table_rows .= '<td id="td" align="center" style="'.$style.'padding:5px;" >'." ".'<form><input type="checkbox" name="deletethis[]" value="'.$row['inj_id'] . '"></form></td>'." "; echo "<tr>" . $table_rows . "</tr>"; $row = mysql_fetch_assoc($result) ; } echo '</table><Br/></div><br/>' } ?>
Checkbox Without Array
I have a question regarding implementing a checkbox that DOESN'T use arrays -- everything i find when i google has arrays in it! So, I'm hoping someone here can help me come up with a solution to my problem. I have a checkbox that a user can check (default will be to have it NOT checked) - and once it's checked, to keep it checked until the user unselects it again. Here's my checkbox code: <input type ="submit" name="cv_permission" type="checkbox"> What do I have to do to keep it turned 'ON' once it's checked?
Checkbox FormMailer
Ive got this problem and i have no idea how to fix it. Ive been trying to do it in PERL, but thats not my strong point, and i know a lot more PHP than perl. But still dont know enough to try and achive what i want to do. Basically i am trying to have a web form in which the company fills out the form and can select which people to send the form to. Code:
|