hi i have one form. there are three fields which are to be filled by the user. and then there are two buttons. ob clicking first button i want to save user's provided data to the database display the same page again. and on clicking second button the provided data will be saved and will be taken to next page. 
my problem is with these buttons how can i set up these buttons to do the the action?
my code is here
Code: [Select]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
</head>
<body>
<form name="form1" method="post" action="">
  <label>Degree Name:
  <input type="text" name="textfield" id="textfield">
  </label>
  <p>
    <label>CGPA:
    <input type="text" name="textfield2" id="textfield2">
    </label>
  </p>
  <p>
    <label>Institute:
    <input type="text" name="textfield3" id="textfield3">
    </label>
  </p>
  <p>
    <label>
    <input type="submit" name="button" id="button" value="Save And Add Another">
    </label>
  </p>
  <p>
    <label>
    <input type="submit" name="button2" id="button2" value="Save And Proceed to Next Step">
    </label>
</p>
</form>
<?php
$db = mysql_connect("localhost");
mysql_select_db("job", $db);
$addcv = mysql_query("insert into cv
                     (
                        degree,
                        cgpa,
                        institute
                     ) 
                        values
                     (
                        '".$degree."',
                        '".$cgpa."',
                        '".$institute."',
                     )");
echo "Your data is added.";
?>
</body>
</html>
Progress bar tracking file downloads
Hey guys, was wondering if there was a way to track how far a file has been downloaded. I know there is a way to track uploading with APC and php 5.2 + ?? any suggestions thanks
compile php5 with DOM
Hi,I can't manage to compile php 5.3.0 from source on Windows to include DOM,in spite of the documentation saying that DOM is built into PHP5.I'm compiling php 5.3.0 using the following minimalistic
Help Ordering Arrays
Hi, I have 3 arrays as shown below.Code: $users = $this->get_latest_users();$flirt = $this->get_latest_flirts();$hotlist = $this->get_latest_hotlist();These arrays for a key have
Update Database
Hi All,I have a problem with this:Code: [Select]<?phpsession_start();include('../common/dbconnect.php');$stock_id = $_GET['stock_id'];$query='SELECT * FROM users_stocks WHERE user_id ="' .
Hit counter updating once per IP - IP HIT COUNTER
I have a hit counter, for the amount of views on a tutorial.It'll do the query and then do..$views = $row['views'] + 1;Then insert $views into the database.This updates the view for each refresh of
Alternate messaging
I have 4 strings in MySQL db1$string1 : Hello$string2 : Hi$string3 : Great$string4 : ThanksAnd I have 3 accounts MySQL db2$User1 : $Pw1$User2 : $Pw2$User3 : $Pw3expected result---------------Hello
MS Exchange 2007 integration with ECC 6.0
Hello Experts,
upload control not working with update panel
Hi,I am working with Asp.Net FileUpload control with ajax update panel,if i use the AsyncPostBackTrigger,i am unable to get the filename in serverside,but if i use PostBackTrigger its working fine
Simple MySQL script is not working
Hey guys, Just familiarizing myself with PHP and MySQL. I am following along in the O'Reilly book that addresses both topics and has the platypus on the cover. At any rate, I tried typing in chapter 6
textfield unchanged
hi,i want my form to know whether its textbox is unchange or not.if($textbox == 'unchanged'){ //do this}else{ //do this}ive been searching all day , but cant find the exact solutions...