Shanti C 106 Posting Virtuoso
Shanti C 106 Posting Virtuoso

hai vivek...
thanks for your reply...
but what u have post..that is not fullfill my requirement...
see this link for reference:
http://www.i-spy360.com/en/ispyspin/


please tel me any ideas.....

Shanti C 106 Posting Virtuoso

Check this url:
http://www.tizag.com/javascriptT/javascriptform.php

here you can find all types of validations with working examples...

Shanti C 106 Posting Virtuoso

this is for checking only numbers:

function Only_Num(id)
{
 if(isNaN(document.getElementById(id).value))
 {
  alert("Please Enter Only Numbers (0-9)..");
  document.getElementById(id).value="";
  document.getElementById(id).focus();
 }
 return;
}

this for only letters:

function isAlphabet(elem, helperMsg){
	var alphaExp = /^[a-zA-Z]+$/;
	if(elem.value.match(alphaExp)){
		return true;
	}else{
		alert(helperMsg);
		elem.focus();
		return false;
	}
}
Shanti C 106 Posting Virtuoso

thank you for you both....

Shanti C 106 Posting Virtuoso

hello alll....
please help me to do this task...
pleaseeeeeeee...

Shanti C 106 Posting Virtuoso

yes...
jQuery is a JavaScript library that takes this motto to heart: Writing JavaScript code should be fun. jQuery achieves this goal by taking common, repetitive, tasks, stripping out all the unnecessary markup, and leaving them short, smart and understandable

you can get them here:
http://jquery.com/

Shanti C 106 Posting Virtuoso

by this line:
<select name="fields">
</select>


you can retrieve the option value by $_POST ..

In form tag you should use action as action="search.php".

Shanti C 106 Posting Virtuoso

search engine is the best.... go through it...and add more features like user login,posting blogs,forums like that....

Shanti C 106 Posting Virtuoso

change your code to:

$result = mysql_query("SELECT * FROM  autoalto_mail where mail_id='".$_REQUEST['mail_id']."'" );
Shanti C 106 Posting Virtuoso
Shanti C 106 Posting Virtuoso

A Web 2.0 website typically features a number of the following techniques:

* AJAX and other Rich Internet Application techniques
* CSS
* Semantically valid XHTML markup and/or the use of Microformats
* Syndication and aggregation of data in RSS/Atom
* Clean and meaningful URLs
* Extensive use of folksonomies (in the form of tags or tagclouds, for example)
* Weblog publishing
* Mashups
* REST or XML Webservice APIs

Shanti C 106 Posting Virtuoso

its better to learn ajax..
because web2.0 is going to popular...
for ajax , you need to know javascript...

Shanti C 106 Posting Virtuoso
Shanti C 106 Posting Virtuoso

then check your database connections and table name and column names...
And put echo before your query and execute it
in your mysql...

or send your entire code with database....

Shanti C 106 Posting Virtuoso

if you wrote two seperate update queries..
obviously, if the first one fails,the second one will execute..

Shanti C 106 Posting Virtuoso

You must write $_request as $_REQUEST..

so the code is:

$result = mysql_query("SELECT * FROM  autoalto_mail where mail_id='".$_REQUEST[$a]."'" );

The PHP $_REQUEST variable contains the contents of both $_GET, $_POST, and $_COOKIE.

Shanti C 106 Posting Virtuoso

try in this way:

$result = mysql_query("SELECT * FROM  autoalto_mail where mail_id='".$_request[$a]."'" );
Shanti C 106 Posting Virtuoso

its because of unclosed brace or unclosed tags...
check all your braces of loops .....

Shanti C 106 Posting Virtuoso

just put echo before$v and execute that query in your database sql query..
it tells you where will be the error...

$v ="select * from kullanicilar order by id limit $son, $limit";
$veri= mysql_query($v);
Shanti C 106 Posting Virtuoso

please help me?????????????????

Shanti C 106 Posting Virtuoso

for what??????????

Shanti C 106 Posting Virtuoso

Hello all...

please help me to solve this thread very urgently???

How to rotate an image by 360 degrees in javascript or any other technology???
What requirements need to complete this task???
see this link for reference:
http://www.i-spy360.com/en/ispyspin/

Thanks...

Shanti C 106 Posting Virtuoso

Hello all...

please help me to solve this thread very urgently???

How to rotate an image by 360 degrees in javascript or any other technology???
What requirements need to complete this task???
see this link for refernce:
http://www.i-spy360.com/en/ispyspin/
Thanks...

Shanti C 106 Posting Virtuoso
Shanti C 106 Posting Virtuoso

tel me what it mean by reputation exactly..
and what about green,black reputations....

Shanti C 106 Posting Virtuoso

k praveen...tel me if any error occurs...

Shanti C 106 Posting Virtuoso

Try this..
it works fine:

<? 
mysql_connect('localhost','root','1234');
mysql_select_db('banjarahills');

if($_SERVER['REQUEST_METHOD']=='POST'){
print_r($_POST);

$n=$_POST['name'];
$m=$_POST['message'];
}
if(isset($_POST['submit']))
{
 $message=$_POST['message'];

   $name=$_POST['name'];
   
   

   

   if(strlen($message)<1)

   {

   print "You did not type amessage."; //no name entered

   }

   else if(strlen($name)<1)

   {

      print "You did not type name."; //no post entered

   }


  
  else

   {
      $thedate=date("U"); //get unix timestamp

      $displaytime=date("F j, Y, g:i a");

      //we now strip HTML injections
      $message=strip_tags($message);

      $name=strip_tags($name); 
	  
			 	
     $insertpost="INSERT INTO shout (message,name) values('$message','$name')";

      mysql_query($insertpost) or die("Could not insert post"); 
	  } }


 
$res="select * from shout";
$res1=mysql_query($res);

?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<script language="javascript">
  function toggle_it(itemID){
      // Toggle visibility between none and inline
      if ((document.getElementById(itemID).style.display == 'none'))
      {
        document.getElementById(itemID).style.display = 'inline';
      } else {
        document.getElementById(itemID).style.display = 'none';
      }
  }
</script>

<body>
<form action="" name="form1" method="post">
<table width="981" height="57" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="155"><a href="#" onClick="toggle_it('prl')">shoutbox</a></td>
    <td width="826">
	<marquee direction="left">
	<?
	if(isset($_POST['submit']))
{
while($res2=mysql_fetch_array($res1))
{
	?>
	<?=$res2['message'];?>:<?=$res2['name'];?><? }}?></marquee>
	</td>
 </tr>
<table width="291" id="prl" style="display:none">
  <tr>
    <td width="95">message</td>
    <td width="196"><input name="message" type="text" id="message" ></td>
  </tr>
  <tr>
    <td>name</td>
    <td><input name="name" type="text" id="name"></td>
  </tr>
  <tr>
    <td colspan="2" align="center"><input type="submit" name="submit" value="submit"></td>
  </tr>
 
  </table>
</table>
</form>
</body>
</html>
Shanti C 106 Posting Virtuoso

Try this..
it works fine:

<? 
mysql_connect('localhost','root','1234');
mysql_select_db('banjarahills');

if($_SERVER['REQUEST_METHOD']=='POST'){
print_r($_POST);

$n=$_POST['name'];
$m=$_POST['message'];
}
if(isset($_POST['submit']))
{
 $message=$_POST['message'];

   $name=$_POST['name'];
   
   

   

   if(strlen($message)<1)

   {

   print "You did not type amessage."; //no name entered

   }

   else if(strlen($name)<1)

   {

      print "You did not type name."; //no post entered

   }


  
  else

   {
      $thedate=date("U"); //get unix timestamp

      $displaytime=date("F j, Y, g:i a");

      //we now strip HTML injections
      $message=strip_tags($message);

      $name=strip_tags($name); 
	  
			 	
     $insertpost="INSERT INTO shout (message,name) values('$message','$name')";

      mysql_query($insertpost) or die("Could not insert post"); 
	  } }


 
$res="select * from shout";
$res1=mysql_query($res);

?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<script language="javascript">
  function toggle_it(itemID){
      // Toggle visibility between none and inline
      if ((document.getElementById(itemID).style.display == 'none'))
      {
        document.getElementById(itemID).style.display = 'inline';
      } else {
        document.getElementById(itemID).style.display = 'none';
      }
  }
</script>

<body>
<form action="" name="form1" method="post">
<table width="981" height="57" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="155"><a href="#" onClick="toggle_it('prl')">shoutbox</a></td>
    <td width="826">
	<marquee direction="left">
	<?
	if(isset($_POST['submit']))
{
while($res2=mysql_fetch_array($res1))
{
	?>
	<?=$res2['message'];?>:<?=$res2['name'];?><? }}?></marquee>
	</td>
 </tr>
<table width="291" id="prl" style="display:none">
  <tr>
    <td width="95">message</td>
    <td width="196"><input name="message" type="text" id="message" ></td>
  </tr>
  <tr>
    <td>name</td>
    <td><input name="name" type="text" id="name"></td>
  </tr>
  <tr>
    <td colspan="2" align="center"><input type="submit" name="submit" value="submit"></td>
  </tr>
 
  </table>
</table>
</form>
</body>
</html>
Shanti C 106 Posting Virtuoso

use `` for your all columns and try it...

Shanti C 106 Posting Virtuoso

execute your echoed query in mysql database...and tel me what error you got there.............

Shanti C 106 Posting Virtuoso

Read the above , mentioned earlier....

Shanti C 106 Posting Virtuoso

echo your insert query....

Shanti C 106 Posting Virtuoso

Its better to do like,set your questions in your dropdown from database is good...
check this thread ,here you can found attachments,that will get you clear answer....

http://www.daniweb.com/forums/thread132703.html

Shanti C 106 Posting Virtuoso

$handle = fopen("http://www.example.com/", "r+");
'r+' : Open for reading and writing; place the file pointer at the beginning of the file.

Shanti C 106 Posting Virtuoso

I dont know any...
Perhaps this is simple...
Its good work of you praveen...
keep it up....

Shanti C 106 Posting Virtuoso
Shanti C 106 Posting Virtuoso
Shanti C 106 Posting Virtuoso

Please post your code atleast....

Shanti C 106 Posting Virtuoso

hope you will get what you want in view of technical..

Shanti C 106 Posting Virtuoso
Shanti C 106 Posting Virtuoso

see above answer which i have posted...

Shanti C 106 Posting Virtuoso

And tel me where you are going to compare your username and password...

I think that is from database...
tel me...
here is the code for redirecting if username and password are correct...

<?
session_start(); 
include('functions.php');

if($_SERVER['REQUEST_METHOD']=="POST"){

	$qer="select * from table where username='".$_POST['username']."' and password='".$_POST['password']."'";
	$res=mysql_query($qer);
	$num=mysql_num_rows($res);
	if($num==0)
		{
			echo'<script language="javascript">window.location.href="anotherpage.php";</script>';
		}
	else if($num==1)
		{
			session_unregister("user_name");
			session_register("user_name");
			$_SESSION['user_name']=$_POST['username'];
			
						echo'<script language="javascript">window.location.href="welcome.php";</script>';
		}
}
?>
Shanti C 106 Posting Virtuoso

And tel me where you are going to compare your username and password...

I think that is from database...
tel me...

Shanti C 106 Posting Virtuoso

My reply will be the solution for your line...

what if somebody, instead of going thru the normal procedure (from a.php to b.php after verification), directly types in the url for b.php into the address bar???

Shanti C 106 Posting Virtuoso

I you want to display the second dropdown from first dropdown,then see this thread:
http://www.daniweb.com/forums/thread77281.html

Shanti C 106 Posting Virtuoso

Use this code in your application:

<? 
$query="SELECT sub_cat_id, sub_cat_name FROM category";

/* You can add order by clause to the sql statement if the names are to be displayed in alphabetical order */

$result = mysql_query ($query);
echo "<select name=category value=''></option>";
// printing the list box select command

while($nt=mysql_fetch_array($result)){//Array or records stored in $nt
echo "<option value=$nt[sub_cat_id]>$nt[sub_cat_name]</option>";
/* Option values are added by looping through the array */
}
echo "</select>";// Closing of list box 
?>
Shanti C 106 Posting Virtuoso

The way I understand it, you want to have new textboxes appear due to an onClick event attached to a button. If that is incorrect, please clarify the post a bit.
To proceed with my understanding, let me preface: You will not need PHP to accomplish this task. A little CSS and Javascript will do the trick.

<html>
<!-- CSS Declaration -->
<head>
    <style type="text/css">

    /* Sets class for the text box  with a hidden property */
    .hide {
        display:none;
        }

    /* Sets class for the text box with a visible property */
    .show {
        display:block;
        }

    </style>
</head>

<body>

<input type="button" value="Show" onclick="document.getElementById('MyBox').className='show';" />
<input type="button" value="Hide" onclick="document.getElementById('MyBox').className='hide';" />

<br />
<br />

<!-- Hide and Show this DIV with the buttons above -->
<div id="MyBox" class="hide">
    <input type="text" name="TextBoxName" />
</div>
</body>
</html>
Shanti C 106 Posting Virtuoso

this is one type:

<script>
function Add()
{
</script>
<td width="300" ><input type="text" name="txt_prodid[]" class="border" size="25" /></td>
<td width="200" colspan="2"><input name="txt_proddescription[]" type="text" class="border" size="36" /></td>

<td width="200"><input type="text" name="txt_prodquantity[]" size="20" class="border" /></td>
<script>
}
</script>



<form name="pr_form" action="pr_add.php" method="post" onSubmit="return validateForm();">

<tr width="508" align="center">

<td colspan="2" align="right"><input name="Product" type="submit" value="Add Product" class="buttonSubmitMedium" onClick="Add();"></td>
Shanti C 106 Posting Virtuoso

hey w3schools is the best for php beginners.............