Shanti C 106 Posting Virtuoso

use explode function to separate them...
see this...

if my post is not reach your requirement...please ignore this...

Shanti C 106 Posting Virtuoso

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....

Shanti C 106 Posting Virtuoso

Find the best in others...

Shanti C 106 Posting Virtuoso

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!!!"> &nbsp; &nbsp; &nbsp; &nbsp; 
<input type="submit" name="nex" value="Next"  onClick="return chkaddad();"> 
</form>

<?php


if(isset($_POST['nex'])){
	
		/**
		 * …
Shanti C 106 Posting Virtuoso

world is going to fill with computers...so leave some place to nature..

Shanti C 106 Posting Virtuoso

494

Shanti C 106 Posting Virtuoso
Shanti C 106 Posting Virtuoso

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...

Shanti C 106 Posting Virtuoso

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">&nbsp;</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>
Shanti C 106 Posting Virtuoso

you have to use some AJAX to got this....

Shanti C 106 Posting Virtuoso

Can somebody please be of HELP?

Hello jackakos,
post your whole code of that page...i will check it now...

Shanti C 106 Posting Virtuoso

then post your required code......

Shanti C 106 Posting Virtuoso

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'.

Shanti C 106 Posting Virtuoso

Any other information on this?????

Shanti C 106 Posting Virtuoso

what is the need to put three forms here...

Shanti C 106 Posting Virtuoso

My previous thread is same like what you want....
if you don't know php then ajax attachment , try is...they are properly working.....

Shanti C 106 Posting Virtuoso

500

Shanti C 106 Posting Virtuoso

Champions are made , not born....

bumsfeld commented: a good one +6
Shanti C 106 Posting Virtuoso

i don't know you at all...
so i am giving 0....

Shanti C 106 Posting Virtuoso

Those who succeed are the ones who think they can!!!!

Shanti C 106 Posting Virtuoso

For this you have to contact your hosting company...
see this for more details...

Shanti C 106 Posting Virtuoso

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...

Shanti C 106 Posting Virtuoso

post your tried code and errors if any....

Shanti C 106 Posting Virtuoso

http://dynamicdrive.com/
you can get a lot of scripts here....

Shanti C 106 Posting Virtuoso

can you be more clear about it ???????

Shanti C 106 Posting Virtuoso

i am going to know about count clicks for flash scripts...if i got any information, let you know here...

Shanti C 106 Posting Virtuoso

thank you..
i will look in to that..and tel you...

Shanti C 106 Posting Virtuoso

try this:

foreach($_POST["dname"] as $key=>$val){
  echo "key: ". $key. " value: ". $val ."<br />\n";
Shanti C 106 Posting Virtuoso

I am waiting for somebody to help on this...
i am stucked at this point...:(

Shanti C 106 Posting Virtuoso

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);...

FlashCreations commented: Thanks for the Help!!! +1
Shanti C 106 Posting Virtuoso

your post is not clear for me...
please post again with clear...i am not telling totally wrong..

Shanti C 106 Posting Virtuoso

you want two drop down lists, one based another...
if so, go through this thread's attached ones...

Shanti C 106 Posting Virtuoso

check out this url

thanks praveen...
keep do search on new things....

Shanti C 106 Posting Virtuoso

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

Shanti C 106 Posting Virtuoso

try onKeyup() or onkeyPress()

wickedsunny commented: ur answers are really gud +1
Shanti C 106 Posting Virtuoso

hey
thanks for your help
but its solved

it was a url parse error lol

thanks again

ok.......

Shanti C 106 Posting Virtuoso

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.

Shanti C 106 Posting Virtuoso

yes,
To send HTML mail, the Content-type header must be set..

I guess your decleration in the header will allow this to be formatted as html than rather text? This correct?

right....

For more details see this

Shanti C 106 Posting Virtuoso

see my above edited post....
if something else you want...let do post..

Shanti C 106 Posting Virtuoso

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);
OmniX commented: Nice code Shanti, Thankyou! +1
Shanti C 106 Posting Virtuoso

go through this url..code yourself for your requirement..if any errors occur,then let do post here..

Shanti C 106 Posting Virtuoso

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...

Shanti C 106 Posting Virtuoso

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...

Shanti C 106 Posting Virtuoso

today i learnt tooltips using javascript

Can you post any url or script or other information for this...

Shanti C 106 Posting Virtuoso

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"]);
Shanti C 106 Posting Virtuoso

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;
             }
Shanti C 106 Posting Virtuoso

try this:

var url="check.php"
url=url+"?password="+password 
url=url+"?password_check="+password_check
Shanti C 106 Posting Virtuoso

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.....

Shanti C 106 Posting Virtuoso

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...???

Shanti C 106 Posting Virtuoso

try this:

echo "<meta http-equiv=\"refresh\" content=\"0;URL=myprofile.php\">";