- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
29 Posted Topics
Re: Instead of using: $checkbox = $_POST['checkbox']; //from name="checkbox[]" $countCheck = count($_POST['checkbox']); for($i=0;$i<$countCheck;$i++) { $del_id = $checkbox[$i]; $sql = "delete FROM table WHERE id = $del_id"; $result = mysql_query($sql, $con); } why not try using: foreach($_POST['checkbox'] as $val){ $del_id = $val; $sql = "delete FROM table WHERE id = $del_id"; $result … | |
Dear friends, This is my table: CREATE TABLE IF NOT EXISTS `exam_student` ( `exam_roll_no` int(10) unsigned NOT NULL AUTO_INCREMENT, `enrol_id` int(10) unsigned NOT NULL, `exam_id` int(10) unsigned NOT NULL, PRIMARY KEY (`enrol_id`,`exam_id`), KEY `exam_roll_no` (`exam_roll_no`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ; I am trying to get the field **exam_roll_no reset … | |
Re: There may be a problem with the headers. You can try removing the two echos from line 23 and 24 and keep only one echo -- > echo $content; and execute. | |
Re: Instead of using, <form action="javascript:ajaxpage('files/search2.php', 'rightcolumn')" method="POST"> why not try using <form onsubmit="javascript:ajaxpage('files/search2.php', 'rightcolumn')" method="POST"> | |
Re: edit yout javascript to: <script language="JavaScript"> function confirmBox(id){ if (confirm("Tem a certeza que pretende eliminar este utilizador? ")){ location.href="remover_user.php?id="+id;//EDIT THIS LINE } else{ return false; } } </script> and the edit the link to <a href="#" onclick="**javascript**:confirmBox('<?php echo $row_users['id_utilizador']; ?>')">Remover</a> ![]() | |
Re: You can try something like this: echo "<a href=test.php?varname=$_SESSION['SESSIONVARNAME']>$pname</a>"; | |
Re: I tried out both the codes - Yours and of diafol and found out that: It's not about the loops, it's about the ' echo "messages"; and break;' Instead of printing the message and exitting the loop, you should store the status (of finding the match) and print the message … | |
Re: Just making a wild guess:: please check the method of the form or the names of the input/ select ... from the page/ file the data is posted. Possible area of the error: `$_POST['month']` or something like that (May be the tagnames doesnot match). | |
Re: > www.seblake.com I suppose your default page is not a php file (as far I have found out it is default.html) and so the <?php include 'Max-TechFooter.php'; ?> code is not working. you can rename it to default.php and the code will work. But there **may be** a problem: if … | |
Re: Sure, you can do that. Use [B]expression[/B]s in your css. Example: [CODE] img{ display:expression((this.height<=300)?'block':'none'); }[/CODE] Hope this solves your problem. Regards ... | |
Re: [QUOTE=complexcodes;741105]Hello, I am supposed to write a program that prompts user to enter the numbers separated by space and when user click "ok" button, it should display the numbers entered with its mean, and standard deviation and the window should ask if user wants to enter numbers again if yes … | |
Re: [QUOTE=DangerDev;741915]Hi, define a new array with function: arr3=new Array(no_of_element); then use for loop to populate member of both array in to it as u want. use arr_var[index] to access individual member of array.[/QUOTE] This would help: [CODE] function addArr(){ var arr1 = [1,2,3,4]; var arr2 = [5,6,7,8]; arr3=arr1;//or u can … | |
Re: 1). You probably donot have the `indiant1_indiantreaty` database or 2). you already have the `events` table. I ran your query and it showed no errors except for the database `indiant1_indiantreaty` didnot exist. If it is case 1., create your database first, then execute the statement If it is case 2. … | |
Re: [QUOTE=anumitadas;741913]<?php <$conn=mysql_connect("localhost","root","root"); echo("connected"); if(!$conn) { die('could not connect:'.mysql_error()); } mysql_select_db("student",$conn); if (!mysql_select_db('student', $conn)) { echo 'Could not select database'; exit; } ?> This the code..Using which I want to connect but getting the error: Parse error: parse error in c:\apache\htdocs\phpmyadmin\connection.php on line 6 Plz help[/QUOTE] Please check out the lines: … | |
Re: [B]Consider the following:[/B] [ICODE] <?php if(isset($_POST['btnDelete'])){ for($i=1;$i<=4;$i++){ if(isset($_POST['checkbox'.$i])){ echo "<br>".$_POST['checkbox'.$i]; } } } ?> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <form name="form1" method="post" action=""> <table width="301" height="129" border="1" cellpadding="0" cellspacing="1"> <tr> <td width="21"><strong>Sl</strong></td> <td width="245"><strong>Item</strong></td> <td width="31"><strong>Tick</strong></td> </tr> <tr> <td>1</td> <td>Apple</td> <td><input type="checkbox" name="checkbox1" value="Apple"></td> </tr> … | |
Re: [QUOTE=CasTex;737109]Hello, how can I do this ? [URL=http://imageshack.us][IMG]http://img528.imageshack.us/img528/1996/ggg1mh2.jpg[/IMG][/URL] The table is simple table, you can imagine that as a picture. But my point is, how to make the writing like that ?[/QUOTE] Is this what you want? [CODE] <html> <head> <title>Untitled Document</title> </head> <body> <table width="305" height="252" border="0" cellpadding="0" cellspacing="1" … | |
Re: [QUOTE=realnsleo;735010]hi there, i have a problem resetting my form with javascript. I have a registration form that when submitted, the action is performed in an iframe so that the browser does not have to load another page. After form validation, i want the php script in the iframe to clear … | |
Re: [QUOTE=silentbob671123;740129]What I am trying to do is preload images on my website and delay my javascript slide-show until the images are completely done loading. Right now the slide-show starts while the images are still loading, making it kind of awkward. I am using this to preload my images but it … | |
Re: [QUOTE=farahphp;733431][code] <html> <head> <script language=javascript> function updateopen() { var c_value = ""; var cb = document.getres.checkbox; for (var i=0; i < cb.length ; i++) { if (document.getres.checkbox[i].checked) { c_value = c_value + document.getres.checkbox[i].value + "\n"; } } alert(c_value); //window.opener.document.getElementbyId(numbe33).value = c_value //window.close(); } </script> </head> <body> <? echo '<form name="getres" … | |
Re: [QUOTE=collegestudent;740274]<?xml version = "1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns = "http://www.w3.org/1999/xhtml"> <head> <title>Airline Reservation System</title> <form id="ourForm" name="myform" > <table> <tr><td>Enter 1 for Economy Seat, 2 for First Class</td><td><input type="text" name="box1" size="5"/></td></tr> <tr><td>Result</td><td><textarea name = "textarea" rows="40" cols="70"/></textarea></td></tr> <tr><td><input type="button" value="Submit" name="button1"onClick="startArray()"></td> <td><input type="reset" value="Clear" … | |
Re: [QUOTE=blufab;740646]Is it possible to get the value of a non-standard attribute in firefox? I am trying to capture the value of attribute required. In IE I am able to get the value using document.form.required but in firefox it just returns undefined. [CODE=html] <html> <head><title></title></head> <body> <form id="form" name="form"> <input type="text" … | |
Re: [QUOTE=Manuz;732325]change ur code with this........ it will work ....... [code=php]echo ' <form action="show.php" method="post" onChange="this.submit()"> <select> <option value selected>select</option> <option value="1">1</option> <option value="2">2</option> </select> <input type="submit" value="submit"> </form> ';[/code][/QUOTE] Replace your [B]Double Quotes[/B] by [B]Single Quotes[/B], and vice versa. [code=php]echo "<form action='show.php' method='post' onChange='this.submit()'><select><option value selected>select</option><option value='1'>1</option><option value='2'>2</option></select><input type='submit' value='submit'></form> … | |
Re: [QUOTE=evstevemd;732246]I Hope They Are legal too, I mean Authors allowed it to be download[/QUOTE] try this : [url]http://in2.php.net/download-docs.php[/url] You can search for PHP Manuals in CHM format. CHMs are easier to deal with. | |
Re: [QUOTE=ehsun7b;728836]I need to get all children of a DIV and their children too. I mean I need to get the HTML text of a DIV but I don't like to use innerHTML since it does not support the values of inputs in many browsers. How can I do that? :-/[/QUOTE] … | |
Re: [QUOTE=cmills83;727888]hi i have a parent window with an external url iframe. when the parent loads i want to set the iframe footer to display:none;. is there a way to do this? i have looked all over w/no luck. thanks[/QUOTE] I hope this should solve your problem: [CODE]<script language="JavaScript"> function changeCSS(){ … | |
Re: [QUOTE=castlelaker;732063]Thanks This work fine if you put single quotes around 'country'. If you dont no result is displayed Thanks again Castlelaker[/QUOTE] This should be the correct statement I suppose: [code=php]$query="SELECT count(*) FROM stats WHERE BirthCountry = ".$country." ;";[/code] Regards. | |
Re: [QUOTE=veledrom;731493]Hi, Button below opens new popup window but doesn't send POST data from form. How can i send POST data? I know "form action" but, i want this way. Thanks [code] <input type="submit" name="buttonUnit" value="Add" onClick="window.open('add.php','Done','width=400, height=130')"> [/code][/QUOTE] Just to be clear: Do you want to post your data from … | |
Re: [QUOTE=yasmena;729839]i wonder how can write a JS variable inside HTML here's the Line: var texture=document.getElementById('texture').value; formdiv.innerHTML = formdiv.innerHTML +'<td align=center> JS VARIABLE TEXTURE</td>'; any help is appreciated[/QUOTE] var texture=document.getElementById('texture').value; formdiv.innerHTML = formdiv.innerHTML +'<td align=center>' + texture + '</td>'; Hope this Helps. Regards | |
Re: [QUOTE=aneesh.nl;732247]Sorry I can't. Clearing doesn't work[/QUOTE] The Fourth Row in your Table has three columns: [U]News[/U], Welcome to Unique... and Publications. The width of these three columns is : 264+371+297 = 932 px. The width of the whole table cannot be reduced than 932px. I had removed that particular row … |
The End.