Current location: Hot Scripts Forums » Programming Languages » PHP » php value problem


php value problem

Reply
  #1 (permalink)  
Old 10-13-08, 09:08 PM
komrad komrad is offline
New Member
 
Join Date: Sep 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
php value problem

Hello all,

I'm a learning php this year but i encounters some problems.

One of them is about php value. The problem is how do i do to prevent a php file from resending the same values into the database whenever the page is refreshed?

Anyone help?


Thanks,

Asep
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 10-13-08, 09:31 PM
ianbrind ianbrind is offline
Wannabe Coder
 
Join Date: Jul 2008
Location: Somerset UK!
Posts: 192
Thanks: 0
Thanked 0 Times in 0 Posts
I assume you are submitting a form.

If so.
PHP Code:

if(isset($_POST['submit']))
{
$value $_POST['var'];
// insert into database
}
else
{
// display form

Or similarly use a function.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with deleting data from mysql using php maxat PHP 4 08-25-09 12:08 PM
can someone help with htaccess and php problem tigherrdk PHP 6 03-09-09 03:28 AM
PHP Communication Problem Califer PHP 0 07-05-06 01:07 AM
PHP and JavaScript problem twome PHP 1 04-19-06 07:43 PM
PHP script problem (please help) osmanmumtaz PHP 0 05-24-05 08:29 AM


All times are GMT -5. The time now is 09:59 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.