ko ko 97 Practically a Master Poster
ko ko 97 Practically a Master Poster
Ajax ?
1. Remove 'height: 0px;' from 'flags'.
2. Remove 'padding-top:' from 'h2' inside 'headerright'.
You can escape HTML from the PHP delimiter and echo the value in their specific '<td>'. Example below:
<? php
/* Shuawna Norris
June 13, 2011
Part two
Working with money
*/
$balance=55.75;
$newShirtCost=15.75;
$earns=20.00;
$bar=.55;
?>
<body>
<h1>Balance</h1>
<TABLE border=’1’>”;
<tr><td colspan="3">Starting balancebalance</td></tr>
<tr>
<td>Purchase: Clothing Store:<?php echo sprintf("$%2f", ($balance-$newShirtCost)); ?></td>
<td>ATM Deposit: <?php echo sprintf("$%2f", ($balance+$earn)); ?></td>
<td>Balance after split with wife: <?php echo sprintf("$%.2f", ($balance/2)); ?></td>
</tr>
</table>
</body>
This is more readable and easy to maintain.
newbie14
The 'z-index' will determine which layer is over and which layer is underneath. The highest value is top of the other (i.e., 3 is over 2, 1 and 2 is over 1), negative has the same affect reversely. So, you can handle easily by specifying the proper value for each 'z-index' with individual class or inline-style.
<div class="tab_button" style="z-index:2;">some text</div>
<div class="tab_button" style="z-index:1;">another tab button</div>
In my example above, I set the class 'current_tab' and give the different background-image and higher value of z-index than the other tabs.
.current_tab {
background: url('*.jpg') no-repeat 0 50%; /* the background-image for the cuurent tab */
z-index: 2;
}
It is easily maintain than inline-style. Hope this help.
What does 'alert(str)' show ?
Use separate class for the current tab and set the highest 'z-index' property than the others. My example like below:
<html>
<head>
<style>
.tab_button {
background-image:url('dark.png');
float: left;
position: relative;
margin-right: -13px; /* depends on your image size */
width:143px;
height:31px;
line-height; 31px; /* give the same values of height, the text will be properly align vertically */
text-align: center;
z-index: 1;
}
.current_tab {
background: url('*.jpg') no-repeat 0 50%; /* the background-image for the cuurent tab */
z-index: 2;
}
</style>
</head>
<body>
<div>
<div class="tab_button current_tab">some text</div>
<div class="tab_button">another tab button</div>
</div>
</body>
</html>
I add a little CSS base on @twiss codes. Good luck.
Solved ? Mark this thread as 'Solved' and let us know that this thread is clear.
Try to use 'size' instead of the proper width for each input field.
input {
width: 33px; /* you can extend proper width as much as you need */
}
Fill the background-color to all box wrapping the form elements in demo. So, you can check where the elements align porperly or are they stap with the place where you want to stay. Like this example.
fieldset div {
background: blue;
}
fieldset label.column {
background: red;
}
This method will point you closer and help to make a better vision to approach.
Hope this help.
$query = "SELECT * FROM my_table WHERE email_id = $email_id";
This should work if you built the specific email id in the same table.
newbie14
It is for debugging. I've no idea where the problem is. It's just only for approaching the problem and debugging. Can you point me the focus if you know where the problem originate ?
Zero13
Try to alert value after requesting the XMLHttpRequest, and check what is the difference between IE and others.
Please mark this thread as Solved if your problem was solved. It will make use clear that there is no need to answer in this thread.
Make sure that you've access permission for the web folder (ie. xampp).
What is the problem ? Doesn't the validation run ?
@almostbob
I heard that IE support embedded font sice IE6. Isn't right ? :)
<script type="text/javascript">
var myform=new formtowizard({
formid: 'fslide',
persistsection: true,
revealfx: ['slide', 500]
})
</script>
formid: 'fslide',
Can you change this instead ? formid: 'formID',
Fill the background-color for demo.
<div style="margin: 50px 100px; background-color: red;">
Check that the layer is staying where it should be.
Line #12, missing close tag '</div>' for country.
<label class='column' id='labcounty' for='ajcounty'>County:</label><select id='ajcounty' name='county' class='required'></select>
Line #14, missing attribute name 'style'.
<div margin-left:0px' >
should be:
<div style="margin-left: 0px;">
And you can't set same 'id' attribute with multiple elements. ID stands for identifies one and only one HTML element in one document.
<input type='radio' name='type' id='ajtype' value='4'/> Single Family Home
<input type='radio' name='type' id='ajtype'value='3' /> Condo/Townhome
<input type='radio' name='type' id='ajtype'value='2' /> Apartment
<input type='radio' name='type' id='ajtype'value='1' class='validate-one-required'/> Business
The above will fail on validator. http://validator.w3.org/
Both are inline, and they'll appear one beside one, you may not need to float them. Do as @twiss said, wrap with 'DIV'.
If you use 'float', no problem. But, float can cause some issues and you need to fix that.
Move your thread into Javascript forum.
Your post is unclear. What do you want to do ? Change the active image for the current page ? Be more precise will be appreciate for us.
If you want to process in the same page, use form. Otherwise you can use link. But you can't retrieve the data with '$_POST[]' by pass with the link, whether the form can be retrieve both '$_POST' and '$_GET'. Here is example below:
With the anchor link:
<a href="page.php?param1=blabla¶m2=blabla">Go to page</a>
# page.php
$param1 = $_GET['param1'];
$parem2 = $_GET['param2'];
//other statements for processing
With form:
<form name="myform" action="page.php" method="post">
<input type="text" name="param1" />Param1<br />
<input type="text" name="param2" />Param2<br />
<input type="submit" value="Submit" name="submit" />
</form>
#page.php
$param1 = $_POST['param1'];
$param2 = $_POST['param2'];
//you can also use $param1= $_GET['param1'] and $param2 = $_GET['param2'] respectively when you are using the get method with that form
//further processing
Hope this help.
It means that 'UsersController::header()' is missing in the file '/home/tsiplanm/public_html/secure/cake/libs/controller/controller.php'. I never used CakePHP before and I don't know anything about that framework. Perhaps, the file is corrupted and some codes missed when you're downloading. Try to download the new one and install again or find the documentation on the official site http://cakephp.org/
Maybe, there is no post in the `comments` table. You can check manually in phpMyadmin.
SELECT name FROM comments WHERE blog_id = 'your_id' ORDER BY dateposted;
What is the difference of 'login.inc.php' and 'login_form.inc.php'? Aren't they same ? If they are have the same functions, you don't need to include the 'login.inc.php'. The login will be process in 'login_form.inc.php' when the form was submitted even if you included 'login.inc.php' on the top because your form points 'login_form.inc.php'.
In line 18 on the processing script:
Do I need to return false; to do it correct, and the script doesnt contibue after the validation?
I haveent done this, and it is not submitting (It is working anyways)!?
If i write return false; it still works..
You shouldn't use 'empty()' for string. See more detail here.
Next question, How do I create a session, so that I can include it on the pages I want to protect
You must write 'session_start()' on the very top of the file before processing any PHP scripts. Put 'session_start()' in the file where you want to create and use.
What does the code returns ? Is any errors or what ? Echo the value pass via form first and ensure that the data are correct. Need more clear detail.
<a href="reply_mail.php?id=<?php echo $row;?>" >
<input type="submit" name="reply" value="Reply" class="button"></a>
What for the submit button inside anchor ? Put 'reply_main.php' for action of the form and all pass via form with POST method is better.
Attach event handler.
<input type = "text" name = "somename" value = "" onkeydown="document.getElementById('myID').value=this.value" />
$title = $_GET;
$_SESSION = $title;
Where does the '$title' pass from ? Via form or url ? This statement may encounter the problem if there is no request for '$_GET'. Set the default value if there is no request for '$title'.
$title = (isset($_GET['q'])) ? $_GET['q'] : 'default_value';
I'm not sure that's what your problem. Hope this help.
Ensure that there is no empty space between the PHP delimiter. Clear white spaces and empty line. Like this one:
<?php
session_start();
?>
$_POST['textfield']
for post method and $_GET['textfield']
for get method.
Isn't what you want ?
<?php include "db.php";?>
<?php include "configuration.php";?>
<?php include "configuration.php";?>
Place thine line first before <?php include "db.php";?>
. As I mentioned above, 'session_start()' should write first before processing other PHP statements.
Post this file '/home/dhenter/public_html/zshop/configuration.php'
<?php if(!session_start()) session_start();
//if(!isset($_SESSION)) $_SESSION = 4;?>
Try this one:
<?php
session_start();
?>
Post your code where the 'session_start()' was used. 'session_start()' normally should write at the top of the PHP file before processing any PHP codes.
Put the correct host of MySql database. Not just one, ( host, username, password ) all must be correct input.
@ardav is right. You need to ask your hosting provider to increase the upload size. You may need to recharge for that.
Post the error message you got.
Greek unicode collation was already supported in MySql. Change the unicode collation for your table that is using Greek language. Go to your phpMyadmin, and select your database, go to Operations tab and select the appropriate unicode in Collation options. Hope this help.
Here is example:
<html>
<head>
<title>What db is it going to ?</title>
</head>
<body>
<?php
if(isset($_POST['submit'])){
$name = $_POST['Exaxmple'];
echo "<p>It is going to database <b>db_".$name."</b></p>";
}
?>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<input type="hidden" name="Example">
<input type="submit" value="What db is it going to?" name="submit" />
</form>
</body>
</html>
Hope that it's what you want.
You have not already defined the variable '$no'. Define this variable outside of the loop before starting the loop. Like below.
$no=0;
while($dataTampil=mysql_fetch_array($qryTampil)) {
$no++;
?>
<tr bgcolor="#FFFFFF">
<td> <?php echo $no; ?> </td>
<td> <?php echo $dataTampil['pertanyaan']; ?> </td>
<td> <?php echo $dataTampil['hasil1']; ?> </td>
<td> <?php echo $dataTampil['hasil2']; ?> </td>
<td> <?php echo $dataTampil['hasil3']; ?> </td>
<td> </td>
</tr>
<?php } ?>
Maybe, it is only one reason, your file does not allow to read and this file has no permission to the users. It may encounter when the file was developed in the local and upload to the server. Check your php file permission and set it to '755'.
What IDE did you use for coding PHP? This may relate with the format how you save this file. Open your PHP file with text editor, notepad is the best in this case. Click 'file' and choose 'Save as'. Then select 'UTF-8' in the Encoding option, and then click OK.
Upload this file to server (overriding is ok) and refresh your web server and clear all cache. Then, reload this page on your browser.
Hope this help.
Note that "ereg_replace" is deprecated. Use "preg_replace" instead of "ereg_replace".
Click 'Mark this Thread as Solve' link below of these answers.
Mark this thread as Solve then, and it will help us to save our time.
<html>
<body>
<?php
$A = floatval($_GET['n1text']);
if($A>=60)
{
echo "Congrats!!!<p>Grade1";
}
elseif ($A <60 && $A >= 40)
{
echo "Grade2";
}
else
{
echo "\n Fail";
}
?>
</body>
</html>
Try with above. It works on my PC.