almostbob 866 Retired: passive income ROCKS

local is the local pc font store, I think, from the web server, even a web server installed locally it requires a url
something like

@font-face { 
font-family: GraublauWeb; 
src: local("Lucida Grande"), url("fonts/GraublauWeb.otf") 
format ("opentype"); }

http://webfonts.info/ font-face browser support details on browser differences

almostbob 866 Retired: passive income ROCKS

Q&D validation,
run the site through http://www.browsershots.org in browsers for each OS
IF w3c html validation errors are egregious it will show blankscreens in some (or many, sometimes ya really mess up :) ) browsers
if the site displays right in the target browsers, the html/css errors dont matter so much

Standard test beds
http://websiteoptimization.com/services/analyze/ Speed tweaks http://validator.w3.org/ html check http://jigsaw.w3.org/css-validator/ css check http://demo.opera-mini.net/demo.html?www.yoursite.com handheld http://www.browsershots.org other browsers

many problems (if present) will show

ggeoff commented: A very useful list of standard testing browsers +3
almostbob 866 Retired: passive income ROCKS
almostbob 866 Retired: passive income ROCKS

coffee and fig newtons

almostbob 866 Retired: passive income ROCKS

depending on the language used as the front end to the mysql back end,
php $date=strtotime('string');
asp $date=DateTime.Parse('string');
in sql getdate($date)

don't use those codes look em up, I havent, so there will be errors

sql date format sux, is explained here http://www.tizag.com/sqlTutorial/sqldate.php
hugely sux
personal viewa unix timestamp is easier apologies
other people with less rigid literal minds have little trouble with setting up the processing to run queries on sql date types

peter_budo commented: Well said +11
almostbob 866 Retired: passive income ROCKS

Dumb as a stump, , but 3/3

almostbob 866 Retired: passive income ROCKS

OPP and NSW Police
I live in both countries, they can be described equally
The best Police Force money can buy

lllllIllIlllI commented: Another NSW person happy with policing :) +0
almostbob 866 Retired: passive income ROCKS
<?php
/* connect select db etc */
$flat=("SELECT C.Latitude, C.Longitude FROM Cities C JOIN Countries Co ON Co.CountryId = C.CountryId JOIN Regions R ON R.RegionId = C.RegionId WHERE C.City = '$city' and Co.Country = '$country' and R.Region='$state'");
while ($fr = mysql_fetch_array(mysql_query($flat))) {
$lat = $fr['Latitude'];
$long = $fr['Longitude']; } 
/* echo $lat $long; */
?>

I dunno but there has to be a query in there doesnt there?

almostbob 866 Retired: passive income ROCKS

" Two Americans sitting in bar first man said to other " I have lot of family problems.
Second man said : " I will tel you mine .i married a widow with a daughter.My father married that daughter.
So my father become my son in law , my daughter become my mother, my wife become my grandma.
More problems occurred when i had a son .My son is my mother's brother and my uncle.When my father had a son he is my brother that is my brother is my grandson becoz my father married my daughter ! . Ultimately i have become my own grandfather and grandson !! .....
"
Now tell me your problem " ......heheehe.....

http://www.youtube.com/watch?v=W7x1ETPkZsk I'm my own grandpaw

almostbob 866 Retired: passive income ROCKS

A caveat applies
There is not enough information to provide accurate answers, to try to elicit information

  1. is the portal remotely hosted
    if remote they may have a support desk
  2. Do you control the configuration
  3. what script is it
  4. what changed at or just prior to failure, updates, even just email address of a recipient
  5. have you checked (if any) the error logs of the application
  6. have you checked your email provider's blocklist, to see if your mail handler has made it to the spam filter
  7. have you checked the spam folder on you webmail interface
  8. have you recently fired any disgruntled tech staff

I probably wont answer the question, but the more information provided, someone will

almostbob 866 Retired: passive income ROCKS

WYSiWYG what you see is what you get
as in "FrontPage is a wysiwyg editor"

the code sample at the top of the prior reply should be cut and pasted into 'html view' in frontpage if you use it
the stuff in the <head></head> copied into your <head> the stuff in the <body></body> copied into your <body>
stuff between <style></style> and <script></script> tags copied between the same tags in your page head

FrontPage is not particularly friendly to import code, but the addition is MS centric so it wont **expletive deleted** up

almostbob 866 Retired: passive income ROCKS

Where the file is accessed by

<a href='download.php?file=thisfile.pdf'>download Thisfile.pdf</a>

mysql

<?php /*download.php*/
If (!$_POST['file']='') {
/* validate $_POST  any amount of form validation this is just an exercise
or die('invalid information'); */
$con=mysql_connect("server","user","password");
if (!$con) { die('Could not connect: '.mysql_error()); }
mysql_select_db("my_db", $con);
mysql_query("INSERT INTO downloads (FirstName, LastName, Company, email, telephone, file) VALUES ('$_POST['Firstname']', '$_POST['Lastname']', '$_POST['Company']', '$_POST['email']', '$_POST[telephone]', '$_POST['file']')");
$path=''; //full path outside the root to downloadable files
header("Content-disposition: attachment; filename=$_POST['file']");
header('Content-type: application/pdf;');
readfile("$path$_POST['file']"); }
else {echo '<form action="'.$_SERVER['php_self'].'" method="post">';
.'<input name="file" type="hidden" value="'.$file.'">';
.'Firstname ?<input name="Firstname" type="text"><br>';
.'lastname ?<input name="Lastname" type="text"><br>';
.'Company ?<input name="Company" type="text"><br>';
.'email ?<input name="email" type="text"><br>';
.'telephone ?<input name="telephone" type="text"><br>';
.'<input name="go" type="submit" Value="Download file"></form>'; }
?>

csv text file

<?php <?php /*download.php*/
If (!$_POST['file']='') {
/* validate $_POST  any amount of form validation this is just an exercise
or die('invalid information'); */
$file = "./logfiles/logfile.csv";// define the text file, named as .csv excell can open it.
$fp = fopen($file, "a+");//open the text file for writing.
fputs ($fp, "$_POST['Firstname'],$_POST['Lastname'],$_POST['Company'],$_POST['email'],$_POST[telephone],$_POST['file']\n");
fclose($fp);
$path=''; //full path outside the root to downloadable files
header("Content-disposition: attachment; filename=$_POST['file']");
header('Content-type: application/pdf;');
readfile("$path$_POST['file']"); }
else {echo '<form action="'.$_SERVER['php_self'].'" method="post">';
.'<input name="file" type="hidden" value="'.$file.'">';
.'Firstname ?<input name="Firstname" type="text"><br>';
.'lastname ?<input name="Lastname" type="text"><br>';
.'Company ?<input name="Company" type="text"><br>';
.'email ?<input name="email" type="text"><br>';
.'telephone ?<input name="telephone" type="text"><br>';
.'<input name="go" type="submit" Value="Download file"></form>'; }
?>
diafol commented: Nice one +3
almostbob 866 Retired: passive income ROCKS

its called CSS, cascading style sheets
a basic tutorial is http://www.w3schools.com/css/

simply you put a link in the head of each file to the stylesheet
and in the stylesheet define the look of the page
every page looks like the style
change the style sheet, change every page

When you get some code written, it is very much the same as the style in <head> or the width= background= attributes of plain vanilla html, there is a forum dedicated to css, next door to this one, html & CSS forum and there are code mavens who can answer and suggest
CSS :: no longer need tables for layout, position every element where you want it, tighter faster code, less to debug

almostbob 866 Retired: passive income ROCKS

server processing, the google search would be for, apache mod_rewrite
too, have index.php in the folder and link to the folder
also works when you dont want the folder directly linkable
index.php/index.html/default.asp in those folders - a permanent redirect to where you do want them to go

almostbob 866 Retired: passive income ROCKS

the javascript calls the php script on the server and writes the returned html into the same div p or other tag that the original was written
The JQuery library has good instructions and basic tutorials http://docs.jquery.com/Tutorials/

almostbob 866 Retired: passive income ROCKS

Dont format the date time in the database
text formatted dates are for humans to read, sql is not human does not need any of that and it makes the processing slower
sql Date, php date, unix timestamp, are all a single 10byte numeric that stores complete date and time
formatting is done for human readability on output
example <?php echo date('DMY h:m',$timestamp} ?> selecting a timestamp renage from num1 to num2 is much faster - less processing than searching text dates for dates between x and 1
sql now() will input the date and time of the update as the update is processing
php date() is now

1253454900 (10bytes)
or
September 20 2009, 1:55pm (25bytes)

not much on 1 row, very much on a million rows

select * from table where date > 1234567890 and date < 1234568890
is much faster than precessing text dates
processing script languages have strtotime() (or an identical function) built in, you dont even have to do any text to time conversions on range select fields

text date time: not good

Will Gresham commented: +1 +2
almostbob 866 Retired: passive income ROCKS

http://www.websiteoptimization.com/services/analyze/ may help you work out what to do to to speed it up

almostbob 866 Retired: passive income ROCKS

you are trying to run php from the local file system /C:/Documents and Settings/rEd_xiii21/Desktop/programming/ERDI Website Final/Duplicate of Edited Site/
that wont work, even if it is the same folder
php has to run as http://127.0.0.1/filepath/filename.php (or localhost/)
move all the files you wish to work on, below the folder assigned as localhost in your php/wamp/IDE settings and access them though the localhost url
I do not know what php system version/wamp/ide you have installed but the errors now seem to be simply method problems, but a solution is getting closer (nervous fingers crossed)

almostbob 866 Retired: passive income ROCKS

this is better

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
<head>
<title>Add help</title>
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="Mon, 22 Jul 2000 11:12:01 GMT" />
<!-- Put IE into quirks mode -->
<title><?php echo HOSTDESCRIPTOR ?>: HelpPage</title>
<link rel="stylesheet" type="text/css" href="CSS/Help.css" />
<link rel="stylesheet" href="/CSS/custom-theme/jquery-ui-1.7.1.custom.css"/>
<link rel="stylesheet" href="/CSS/SiteWide.css"/>
<script type="text/javascript" src="/JavaScripts/DWjQuery.js"></script>
<script type="text/javascript" src="/JavaScripts/CL/ComponentLoader.js"></script>
<script type="text/javascript">
$(document).ready( function()
    {
    //load the standard headers.
    $("#header").LoadComponent("<? echo STANDARD_HEADER;?>");
    });
</script>
</head>
<body bgcolor="#eeeeee">
<div style='text-align:center'>
<h2>Amend/Delete Help Record</h2><br>
<form id="HelpUD" name="HelpUD" action="HelpUpdate.php?UID=<?php echo $ID ?>" method=post enctype="multipart/form-data">
<table style="hidden">
<tr><td>Record Type:</td>
<td><input type='text' readonly id="RecordType" name="RecordType" value="<?php echo $ParentString ?>" >
</td></tr>
<tr><td>Topic Title:</td>
<td><input type="text" id="TopicTitle" name="TopicTitle" value="<?php echo $TopicName ?>" maxlength="25">
</td></tr>
<tr><td>Parent:</td>
<td><input type='text' id="Parent" name="Parent" value="<?php echo $Parent ?>" />
</td></tr>
</table>
Topic Body:
<textarea cols="60" rows="10" id="TopicBody" name="TopicBody" value="<?php echo $Topic ?>"></textarea>
</div>
<p><font color='red'><?php echo $Message ?></font></p>
<input type='button' value="Back" onclick="BackClick()" />
<input type='button' value="Delete" onclick="DeleteHelp()" />
<input type='button' value="Update" onclick="UpdateClick()" />
</form>
</div>
<div id="header">loading...
</div>
</body>
</html>

the best criticism/advice I can offer is to use a code highlighting editor, notepad2 notepad++ or any of the others, that will show you when you have forgotten to close a quote.
the code is not valid xhtml see the new line 2, there are other bugs, validate by pointing the validator at a test run url, so there is a value in the script variables
this tool http://validator.w3.org/ will help you …

stockton commented: Thank you for the suggestions +2
almostbob 866 Retired: passive income ROCKS
<a href='download.php?$filename=whilemyguitar.mp3'>the beatles-while my guitar gently weeps</a>
<?php /* download.php */
if(!session_id) { $hiddenfile="../absolutepath/polkamusic.mp3"; } // evil laugh
else $hiddenfile="../absolutepath/$filename";
header('Content-type: file/mp3'); // I dunno and I'm too lazy to look up (audio/mpeg)?
header('Content-Disposition: attachment; filename="$filename"');
readfile("$hiddenfile");
?>

!logged_in users get polka music for every mp3 they download

slyme commented: Very helpful, thank you. +1
almostbob 866 Retired: passive income ROCKS

My only answer, dont use any of the sql date formats, text dates are tedious to manipulate, they have to be converted to numeric for any operation which takes al lot of time and processing
a timestamp takes 10bytes stores date and time in one column and can be mined for any part of the date and time, and need only be converted once on input
a text date time is
january 1 2009 10:45.22am (25 bytes) not a lot on 1 row, but a lot on a million rows
speed test,
examine 10000 text records of dates
to find dates between December 1 2008 at 12:15pm and 1 January 2009
echo $date;
or
examine 10000 TIMESTAMPs >1228133700 and <1230768000
echo date(d m y, $timestamp)

bit over passionate 'bout this ... :)

iamthwee commented: Thanks for the heads up! +23
almostbob 866 Retired: passive income ROCKS

http://devphp.sourceforge.net/
using the portable version on a thumbdrive in customer offices
the full version on my pc

leviathan185 commented: Just what i needed, Thanks +1
almostbob 866 Retired: passive income ROCKS

Thank you for posting the examples. I looked at the manual and did not understand it. I like forums where people post their own examples and not just refer to "manuals" because it helps me learn more. Thanks for your help.

Glad it all helped, examples stick in my mind better too

nav33n commented: Totally agree :) +11
almostbob 866 Retired: passive income ROCKS
AND Ships.Dest_State IN ('LA') ORDER BY 'PU_Date ASC'

Try removing the ASC from the quotes !

good catch, stared at it and didnt see

jay.barnes commented: Thanks for the help with my MySQL query issue! +1
almostbob 866 Retired: passive income ROCKS

.REPLACE works exactly like INSERT,..except that if an old row in the table has the same value as a new row for a PRIMARY KEY or a UNIQUE index

http://dev.mysql.com/doc/refman/5.1/en/replace.html

the primary key ID is not referenced by the replace statement, the replace wont work as you intend, it becomes an insert statemen

almostbob 866 Retired: passive income ROCKS
<? $dbserver = "localhost";
$dbuser = "root";
$dbpass = "";
$dbname = "em";
$dbconn = @mysql_connect($dbserver,$dbuser,$dbpass) or exit("SERVER Unavailable"); 
@mysql_select_db($dbname,$dbconn) or exit("DB Unavailable"); 
$sql = "SELECT image FROM em.testblob WHERE id =".$_GET["id"]; 
$result = @mysql_query($sql,$dbconn) or exit("QUERY FAILED!"); 
$image = @mysql_result($result,0,"imgdata"); 
$output = imagecreatefromstring($image);
header("Content-type: image/png"); 
header("Content-disposition: inline"); 
imagepng($output);
imagedestroy($ouput);
mysql_close($dbconn); ?>

not sure, untested, I only store file system
see aslo imagejpeg, imagegif, imagewbmp functions
if required test original content-type and output using the appropriate function

papermusic commented: pls save me... +1
almostbob 866 Retired: passive income ROCKS

the php is not being parsed in the form
is the form extension .php so that php in the form will be recognized
or is it still labelled .htm/.html
I have a mental blank on any other reason

bbqkaren commented: Thank you +3
almostbob 866 Retired: passive income ROCKS

Design in % and ems, per W3C guidelines, and you only have to make one design, that works in every size.

mattyd commented: thanks ++ +8
almostbob 866 Retired: passive income ROCKS

is the file being parsed as php
that is, is it on a server, either localhost with php installed (wamp, a phpIDE, or similar)
or on your remote server with php installed
and named filename.php so that the php parser knows to look at it.htm .html on your local machine without php installed will not work

kvprajapati commented: Gagan played +3
almostbob 866 Retired: passive income ROCKS

winzip
freezip
easyzip

or any other of the zip/ra/gzip/tar creation utilities
to compress for distribution is done locally on your development machine not on your server, although the files are .php .inc .sql they are just text files, nothing special,

tiger86 commented: thanks. I was hoping it was that simple but I always ask the experts when I'm not sure :) +2
almostbob 866 Retired: passive income ROCKS

spent a lot of time repairing obfuscated and over-escaped codes where the original writer left the company, and they have no copy of the source

veledrom commented: Perfect help. Thanks almostbob +2
almostbob 866 Retired: passive income ROCKS
button { background-color: #e4e0d8; } 
button:hover { background-color: #66cdaa; } 
button:active { background-color: #66cdaa;  } 
button:focus { background-color: #66cdaa; } 
form { PADDING: 1px; margin: 1px; }
img { border: 0px; }
input { background-color: #efefef; border: 0px; border-bottom: 1px solid #000000; }
input:hover { background-color: #dfdfdf; }
input:focus { background-color: #dfdfdf; border-bottom: 1px solid #101010; }
input:active { background-color: #dfdfdf; border-bottom: 1px solid #101010;}
input[type=button] { background-color: #e4e0d8;  }
input[type=button]:hover { background-color: #66aaaa; }
input[type=button]:focus { background-color: #66cdcc; }
input[type=button]:active { background-color: #66cdff; }
input[type=submit] { background-color: #e4e0d8;  }
input[type=submit]:hover { background-color: #66cdaa; }
input[type=submit]:focus { background-color: #66edea; }
input[type=submit]:active { background-color: #669d9a; }

snipped from my .css I dont use images slows down loading, here in rural dial up land, but css four state works for inputs

almostbob 866 Retired: passive income ROCKS

I have a table with the following date field entry named datetime:
07-05-2009
Which I am assuming is an entry for 07-05-2009 (d/m/Y)

or it could equally be m-d-y
thats the other reason why dates and times should be stored as a timestamp
timstamp is smaller faster and un-ambiguous

Will Gresham commented: +1, completely forgot that point :) +2
almostbob 866 Retired: passive income ROCKS

If you have a really large script with a single error you could post just the relevant section, and comments & suggesstions would reference the 'right' part of your source code
"try {x}|bla bla in line 502"

if you made as many mistakes as me, you would see the need immediately :twisted:

Ancient Dragon commented: right :) +36
almostbob 866 Retired: passive income ROCKS

You install MYSQL on apache
equivalent I think to installing acess on windows
you can run MYSQL on other web servers, on windows, on OS10, but there has to be an underlying OS

csharplearner commented: Thank you for the explaination +1
almostbob 866 Retired: passive income ROCKS

From a prior thread
Check for new version
(I thought once, now I just paste)

diafol commented: Nice one AB - thought fgc would fail for same reason as include. Doh! +3
almostbob 866 Retired: passive income ROCKS

wrap your code in
[code=language] code

[/code] tags leave out the blank lines
it makes it easier to read

use proper html doctypes if you want to use attributes of those doctypes
<html> means html 2.0 = no floats

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

fun isn-nit
float the menu left

almostbob 866 Retired: passive income ROCKS
search = '<form action="http://www.ututorial.net/search" id="cse-search-box"><div><input type="hidden" name="cx" value="partner-pub-3996237323979957:tenb6ft9bbh" /><input type="hidden" name="cof" value="FORID:10" /><input type="hidden" name="ie" value="ISO-8859-1" /><input type="text" name="q" size="31" /><input type="submit" name="sa" value="Search" /></div></form><script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></&#115 ;&#99 ;&#114 ;&#105 ;&#112 ;&#116 ;>'; /* hex has been exploded, spaces added, Daniweb does not allow the hex to sit as typed but echoes the character, bad for this, good to reduce code injections */
function set() { document.getElementById('Search_Content').innerHTML = search; }

the hex is 'script' which when written out by javascript should work

samarudge commented: Thanx for the help +1
almostbob 866 Retired: passive income ROCKS
<select onchange='document.smallimage.src= this.value;document.header.background.src=this.value'>
<option selected='selected' value='blank.jpg'>Choose</option>
<option value='1.jpg'>one</option>
<option value='2.jpg'>two</option>
<option value='3.jpg'>three</option>
<option value='4.jpg'>four</option>
<option value='5.jpg'>five</option>
<option value='6.jpg'>six</option>
</select><br>
<img name='smallimage' id='smallimage' width='320' height='240' src='blank.jpg'>
arvindikchari commented: concise answer +1
almostbob 866 Retired: passive income ROCKS
<?php if($_POST){
echo 'submitted were<br>';
foreach ($_POST as $key => $value) {
echo $key." value ".$value.'<br>';} }
?>
<form action='<?php echo $_SERVER['php_self']; ?>' method='post'>
choice 1<select name='1'>
<option value='big'> big</option>
<option value='blue'> blue</option>
<option value='marble'> marble</option>
</select> &nbsp;
choice 2<select name='2'>
<option value='big'> big</option>
<option value='blue'> blue</option>
<option value='marble'> marble</option>
</select> &nbsp;
choice 3<select name='3'>
<option value='big'> big</option>
<option value='blue'> blue</option>
<option value='marble'> marble</option>
</select><br>
Is AlmostBob a smartass<input type='radio' value='yes' checked='checked' name='radio'> Yes <input type='radio' value='no' name='radio'> No<br>
<button TYPE="submit" name="submit" value="submit" onclick="return(confirm('Are you sure,\nthis is such a **example'));">Submit</button> one kind of submit button<br>
<input type='submit' onclick="return(confirm('Are you sure you want \nto destroy all life?'));" value='exterminate'> another kind of Submit button<br>
</form>

How many forms do you want to know how to build
or should you just go to the w3c tutorial page at http://www.w3.org/TR/html401/interact/forms.html

darkagn commented: Haha, I particularly like the 'Exterminate' submit button :) +3
almostbob 866 Retired: passive income ROCKS

Google
gradient fill
gradient background

its a 1px high, very wide image repeated in Y direction
1000s availble for download at 'webmaster tools' sites

read the css guides on how to repeat backgrounds

try it
if it works Done, yourself
If it doesnt work post the code that didnt and then someone will point you at the cause
nobody is here to do it FOR you
and even less will answer if you behave like an **expletive deleted**

maydhyam commented: Good response! +2
efaith77 commented: I agree almostbob. +3
almostbob 866 Retired: passive income ROCKS

Can you comment on code so as I ca understand better

First two, . is the default for current folder, as .. is parent
third one

take the current script name as known to the server and break it at the last / character
substring of the server array, from position 0 to the position of the last /
this gives the documentroot path to the current folder

Stefano Mtangoo commented: Great help Man! -- I'm just starting PHP +3
almostbob 866 Retired: passive income ROCKS

each included file can be only that part of the html that they need to be
full xhtml for all will give validation errors

<?php
include('doctype.inc.php'); 
echo '<title>'.$pagetitle."</title>";
include('header.inc.php');
include('menu.inc.php');
include("$pagename");
include('footer.inc.php'); ?>

is valid as long as the included files contain the required html (or php to generate the required html obviously) in the required order
there is no requirement for those filenames, that is the code for the dynamic pages of my site
at the end of the day it appears to be a full tree-optimised structure that works well SEO, There is a mod_rewrite rule that displays
mysite.com/folder/file
from
dynamic.php?filename

buddylee17 commented: We must have posted at the exact same time. Good explanation. +4
almostbob 866 Retired: passive income ROCKS
peter_budo commented: Ah why did you have to destroy game? Students are supposed to investigate, but yes captchas are other option... +14
almostbob 866 Retired: passive income ROCKS

does the host have a helpscreen with the server names
ours is a cheap host and to avoid phone calls there is a page outside the control panel
that lists

mail.[yoursitenam].com
smtp.[yoursitenam].com
mysqlhost.[yoursitenam].com
ftp.[yoursitenam].com
ssh.[yoursitenam].com
controlpanel.[yoursitenam].com

etc

diafol commented: Thanks for the help +3
almostbob 866 Retired: passive income ROCKS

Good day to everyone!

I just want anybody to correct my code. The code tells that when i click on the button it will dispay a msg that will confirm if the client really wants to add the information, If yes then he will be redirected to another page, if no then the page that contain the onclink confirm will retain to its current status.

Here is my code pls help:

<input name="" type="submit" OnClick=\&quot;return confirm('Are you sure to submit this payment transaction.?);\&quot;" value="Submit Payment" >

When the client click yes.he/she will will redirected to another page.If no, then the current page will retain its current position.

Pls help.!

Yes
that is what happens, you can test it if you want
make a file success.html with a message 'success' in it
and a test file

<form action='success.html'>
<input type='submit' onclick="return confirm('are you sure');">
</form>

You dont need any other BS functions or the overhead they add

PinoyDev commented: Very helpful.Great solution +1
almostbob 866 Retired: passive income ROCKS

to edit the data entry scripts about 2 minutes
to run a table update on live users and inactive users for 3000 members ~1.5 seconds
to do strtotime manipulation on every data entry for 3000 users ( 3million users (plan on growth)) just getting longer every day,
You can kludge it together with spit and wire like the wright brothers plane,
and it will fly,
a little, once, for 300yards
or you can design a plane that will fly
You will have to correct the design eventually, the processing bottleneck creating and comparing timestrings will mess you up.
fix it while the DB is small

Will Gresham commented: Good words, said much better than I managed +1
almostbob 866 Retired: passive income ROCKS

Got directed to these cheat sheets php css scripting regular expressions 'et al'
had to pass the link on

peter_budo commented: Thanx for sharing +14
almostbob 866 Retired: passive income ROCKS

have you determined that mod_rewrite is enabled in your server
500 Internal server error often means the module is not compiled in

Shanti C commented: Thank You .... +3
almostbob 866 Retired: passive income ROCKS
<table rules='all' border='0'>
<tr><td>X<td>&nbsp;<td>&nbsp;
<tr><td>&nbsp;<td>X<td>&nbsp;
<tr><td>O<td>O<td>X
</table>

theres no need for anything fancy, table has a rules property that does what you ask