use explode function to separate them...
see this...
if my post is not reach your requirement...please ignore this...
i just started redesign with new tables in my dreamweaver...i got correct output...then i was thinking , why your design didn't get good output, then after some time ,i was seeing the changes of your code with my code, then i found the first line is the reason, i just replace that with my line, then its working perfectly...
i think our dreamweaver supports the XHTML....
i checked your code...
why are you using checkbox code in echo statement...thats why the problem raises...
use it as html code..
here is update code...that database belongs to my table..please change your database values accordingly...
<? // Make a MySQL Connection
$conn = mysql_connect("localhost", "root", "1234")
or die(mysql_error());
mysql_select_db("iisspl",$conn) or die(mysql_error());
$my_list = "select fname,lname
from is_users order by lname, fname";
$my_list_res = mysql_query($my_list) or die(mysql_error());
if (mysql_num_rows($my_list_res) < 1) {
//no records
echo "<p><em>Sorry, no records to select!</em></p>";
} else {
// array that accepts the employee list - shd use $_SESSION???
$hello_array[] = $my_list_res;
?>
<!-- major table starts here -->
<form name="slip" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST" onSubmit="return chkaddad();">
<script language="javascript">
function chkaddad()
{
isChecked1=false
for(var i=0;i<document.forms["slip"]["dname[]"].length;i++){
if(document.forms["slip"]["dname[]"][i].checked){
isChecked1=true
}
}
if(!isChecked1){
alert('Atleast select one check box ..');
return false;
}
}
</script>
<table border='1'>
<tr> <th>Last Name, First Name</th> <th>Check / UnCheck </th> </tr>
// keeps getting the next row until there are no more to get
<?php
while($row = mysql_fetch_array( $my_list_res )) {
// Print out the contents of each row into a table
//echo $row['name'];
//echo $_SESSION['ids'] = $_POST['eventtime'];
echo $display_name = stripslashes($row['fname']);
$ids[] = $row['lname'];
$_SESSION['uid'] = $ids;
?>
<tr><td><? echo $display_name;?>
</td><td>
<input name="dname[]" type="checkbox" value="<?=$row['fname']?>">
</td> </tr>
<?
}
}?>
</table>
</center>
<!-- Cancel and Next Buttons should be placed in a form -->
<br />
<br />
<input type="Submit" name="cancel" value="CANCEL!!!">
<input type="submit" name="nex" value="Next" onClick="return chkaddad();">
</form>
<?php
if(isset($_POST['nex'])){
/**
* …
world is going to fill with computers...so leave some place to nature..
check :
http://www.planetsourcecode.com/vb/default.asp?lngWId=8#categories
and this is your best mentor.....
hello i just replace the first line of your code like
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
then it removes the spaces....
check it by replacing with the above line...
hello...
i just tried your code in another way...
it doesn't give any spaces...
have a look at it..
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body bgcolor="#737373" >
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle"><img src="images/corner_left_top.png" width="17" height="17" /></td>
<td width="100%" ><img src="images/middle1.png" width="1000" height="17" /></td>
<td ><img src="images/corner_right_top.png" width="20" height="17" /></td>
</tr>
<tr>
<td ><img src="images/left.png" width="17" height="261" /></td>
<td bgcolor="#A1A1A1"> </td>
<td><img src="images/right.png" width="20" height="261" /></td>
</tr>
<tr>
<td><img src="images/corner_left_bottom.png" width="17" height="22" /></td>
<td><img src="images/middle2.png" width="1000" height="22"/></td>
<td><img src="images/corner_right_bottom.png" width="20" height="22" /></td>
</tr>
</table>
</body>
</html>
you have to use some AJAX to got this....
Can somebody please be of HELP?
Hello jackakos,
post your whole code of that page...i will check it now...
then post your required code......
I think we don't need to pass a variable to an included file, it already has
access to all variables in the including script. It becomes part of the
script that is including it.
$page = 'partner';
include '../admin/addcustomer.php';
Now addcustomer.php will see that $page contains 'partner'.
Any other information on this?????
what is the need to put three forms here...
My previous thread is same like what you want....
if you don't know php then ajax attachment , try is...they are properly working.....
Champions are made , not born....
i don't know you at all...
so i am giving 0....
Those who succeed are the ones who think they can!!!!
you just try to write code for adding products by using mysql insert query and implement the other things you want in your application...
then post us if any errors...
post your tried code and errors if any....
can you be more clear about it ???????
i am going to know about count clicks for flash scripts...if i got any information, let you know here...
thank you..
i will look in to that..and tel you...
try this:
foreach($_POST["dname"] as $key=>$val){
echo "key: ". $key. " value: ". $val ."<br />\n";
I am waiting for somebody to help on this...
i am stucked at this point...:(
yes, in POST variable are stored in a array called $_POST...so we can retrieve them with key like $_POST; or $_POST; or some thing...No matter of order...
or As adilkhan said,try to print print_r($_POST);...
your post is not clear for me...
please post again with clear...i am not telling totally wrong..
Hello..
I want to counts clicks for a flash script..
For image it is easy to do..but for flash i don't know how???
Can anybody know about this...please help me...
Shanti
try onKeyup() or onkeyPress()
hey
thanks for your help
but its solvedit was a url parse error lol
thanks again
ok.......
so,you wan to delete only that post,then simple use:
$query = "DELETE FROM `forumtutorial_posts` WHERE postid = '$parentid'";
i don't know, why you are writing the below line..could you please tel me what is the reason behind that line...
parentid = '$parentid' OR
or if you want to recognize both parentid and postid then use AND instead of OR.
see my above edited post....
if something else you want...let do post..
means , you want to write some thing in that mail...Right????
if so,
see this..
$mail_body='<style type=text/css><!--td {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;}--></style>
<table width="50%" border="0" align="center" cellpadding="1" cellspacing="0" bgcolor="#E7E7E7">
<tr><td>[B]Do your design here...[/B]</td></tr>
</table>';
mailto = 'some@some.com' ;
$mailheader = 'MIME-Version: 1.0' . "\r\n";
$mailheader .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$mailheader.=" From: someone\r\n";
$mailheader .= 'BCc:some2@some.com' . "\r\n";
@mail($mailto,' Details',$mail_body,$mailheader);
provide an url of registration form in your invitation..so they can register there..simply disable register page on your site...
or
in that invitation send them with some code of random number which is stored in your data base table...check with it,while user try to register in your website...
If your requirement is other than my post..let me know...
why not you create session for this...
then you can check whether session is there or not...if ,you can print username and logout ..if session is not there the display normal login box...
if your requirement is something else than my post,,let me know...
today i learnt tooltips using javascript
Can you post any url or script or other information for this...
A. I have to validate the selection made
this is the code:
<script type="text/javascript">
function chkChecks(){
isChecked=false
for(var i=0;i<document.forms["new_page"]["allowed[]"].length;i++){
if(document.forms["new_page"]["allowed[]"][i].checked){
isChecked=true
}
}
if(isChecked){
document.forms["new_page"].submit()
}
else{
alert('Please select a checkbox')
}
}
</script>
And
B. I have to store the value of the selected checkboxes into an array
For this:
this single line will get all checked ones with comma sepperated,then you can insert them in your database..
$comma_checkedones = implode(",", $_POST["dname"]);
validation of an url..
got from google search..
var theurl=document.formaddad.url.value;
var tomatch= /http:\/\/[A-Za-z0-9\.-]{3,}\.[A-Za-z]{3}/
if (!tomatch.test(theurl))
{
window.alert("URL invalid..See the example giving beside the textbox.");
a.url.focus();
return false;
}
try this:
var url="check.php"
url=url+"?password="+password
url=url+"?password_check="+password_check
Events
Blogs
News
Forums
shopping
ad management
creating greeting cards online
shopping at installments wise
hospital management
school management
service management
mobile comparison
online communities
etc.....
pass the auto increment id to the delete command..which is unique in your table...
or post table structure ...
and here what are those parentid and postid...
i think postid is your unique id...???
try this:
echo "<meta http-equiv=\"refresh\" content=\"0;URL=myprofile.php\">";