Process problem.
Posted: Sun Sep 06, 2009 4:14 pm
Hi php gurus
I have two little problems im stuck on the first one is activating a process without having to change pages, ill explain it in more detail.
The first page is "jobs.php" and a user will click "accept" then the user will be taken to a new page called "paymentprocess.php" where multiple queries happen and money gets sent around the database. The problem is it creates to much loading for the user as they will have to click this accept button multiple times so going to a new page about 50 times and then clicking back doesnt sound efficent. So i was wondering if its possible to put the information in paymentprocess.php into the first page "jobs.php" so when accept gets clicked the queries will still happen but will remain on the same page.
Then that leads me to the secound problem, when a user clicks accept money is sent around so obviously it cant be clicked multiple times. After googleing a while it became clear i need to use javascript to make the link clickable once. I found this one:
But it didnt seem to work very well as i couldnt click the link even once it just displayed the alert.
Just some advice in what direction i need to take or some tutorials would be great.
I have two little problems im stuck on the first one is activating a process without having to change pages, ill explain it in more detail.
The first page is "jobs.php" and a user will click "accept" then the user will be taken to a new page called "paymentprocess.php" where multiple queries happen and money gets sent around the database. The problem is it creates to much loading for the user as they will have to click this accept button multiple times so going to a new page about 50 times and then clicking back doesnt sound efficent. So i was wondering if its possible to put the information in paymentprocess.php into the first page "jobs.php" so when accept gets clicked the queries will still happen but will remain on the same page.
Then that leads me to the secound problem, when a user clicks accept money is sent around so obviously it cant be clicked multiple times. After googleing a while it became clear i need to use javascript to make the link clickable once. I found this one:
Code: Select all
<script language="javascript">
function co(what){
if(what.disabled==false)
{
what.disabled=true;
}
else
{
alert("You Have Already Clicked This Link")
return true;
}
}
</script>Just some advice in what direction i need to take or some tutorials would be great.