How can we submit a form without a submit button?
What is the use of obj_star?
Answers were Sorted based on User's Feedback
Answer / shahnawaz sheikh
If there is a drop down option botton or combo box then we
can use onchange event . And on change of options we can
submit it without clicking on Submit button,
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer /
By using javascript document.submit()
and <input type=image>
| Is This Answer Correct ? | 3 Yes | 3 No |
How to set a value in session? How to remove data from a session?
How to increase the maximum execution time of a script in php?
<?php /** * @version 1.0 $ * @package HelloWorld * @copyright (C) 2005 Andrew Eddie * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL */ /** ensure this file is being included by a parent file */ defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); ?> <?php $database =& JFactory::getDBO(); //$sql = 'SELECT name, username FROM #__users'; $sql="select a.id, a.title, a.introtext, a.created_by, a.created from jos_content a, jos_content_frontpage b where a.id=b.content_id and b.ordering='2'"; $database->setQuery( $sql ); $user = NULL; $user = $database->loadObject(); //echo 'Name: ' . $user->name . '<br />'; echo '<h1>' . $user->title . '</h1><br />'; //echo 'Username: ' . $user->username; echo ' ' . $user->introtext; i write this and fetch the result from the database the result is The Intranet is up and working ! Our intranet is up and working and should be accessible from both Mumbai and NOIDA. As you will notice, this template, look & feel is not in line with our corporate indentity but we chose the route of "form-follows-funtion" In the first phase, we are rolling out functionality that is critical to all of us - Policies and How-to documents. In subsequent phases, we will be launching other features. Keep watching this space for more details i want to see only 4 line of top then how this may done
What is namespace in php?
Tips to optimize the php script..... Suggestion for exception handling in php...
How can you retrieve data from the mysql database using php?
How does php work?
Which function is used to read a file removing the html and php tags in it upwork?
<?php include ("db.php"); $result = mysql_query("SELECT ques_id FROM questionbank order by ques_id limit 5 "); while($obj=mysql_fetch_array($result)) { $ad1[$obj['ques_id']]++;//Used an array and inserted the database query results into it. } $rand_keys=array_rand($ad1,1); //Did a random array function echo "First random id = ".$ad1[$rand_keys[0]]; echo "<br>Second random id = ".$ad1[$rand_keys[1]]; ?> <!--Its not working. Have any solution for this. -->
Do you know how to declare an array in php?
How to get number of elements in an array?
What language is php based on?