I am new in PHP developing a site,Online Graduate Curriculum Vitae System, and a have the following forms to complete with PHP,:
-Personal infomation
-Desired employment
-Occupational field
-Work Experienc
-Education and Training
-Languages
-Personal skills and competences
-Additional information and aennexes
...then you save your complete CV that can be downloaded later in PDF,pliz help,THE PROJECT IS DUE END OF MONTH(this month),i want this form to follow one after the other after finishing the other..also help in Marking the complete CV to be downloaded in PDF.

Recommended Answers

All 6 Replies

If you want help, you have to post your code and state the problem within it. Asking will get you now where.

I hope you're not asking us to do an entire homework assignment for you! haha

Hi Dear,

You can use http://www.fpdf.org/ or http://www.tcpdf.org/


for create pdf document.


This is useful for you.


Thanks

I am new in PHP developing a site,Online Graduate Curriculum Vitae System, and a have the following forms to complete with PHP,:
-Personal infomation
-Desired employment
-Occupational field
-Work Experienc
-Education and Training
-Languages
-Personal skills and competences
-Additional information and aennexes
...then you save your complete CV that can be downloaded later in PDF,pliz help,THE PROJECT IS DUE END OF MONTH(this month),i want this form to follow one after the other after finishing the other..also help in Marking the complete CV to be downloaded in PDF.

I think he is looking for a freelancer...

pliz these code can not submit into the Database,,com on guys not looking 4 freelancer need your help..this is the code.
</script>

<!--sa validate from-->
<script type="text/javascript">
function validateForm()
{

var a=document.forms["abc"]["firstname"].value;
var b=document.forms["abc"]["lastname"].value;
var d=document.forms["abc"]["email"].value;
var e=document.forms["abc"]["pword"].value;
var f=document.forms["abc"]["ambot"].value;
var d=document.forms["abc"]["email"].value;
var atpos=d.indexOf("@");
var dotpos=d.lastIndexOf(".");
if (atpos<1 || dotpos<atpos+2 || dotpos+2>=d.length)
{
alert("Not a valid e-mail address");
return false;
}
}
if a==null || a==""))
{
alert("First name must be filled out");
return false;
}
if b==null || b==""))
{
alert("Last name must be filled out");
return false;
}
if ((d==null || d==""))
{
alert("you must enter your email address");
return false;
}
if ((e==null || e==""))
{
alert("you must enter your password");
return false;
}
if ((f==null || f==""))
{
alert("Retype password");
return false;
}
if( e != f ) {
alert("Password does not match");
return false;
}
var atpos=d.indexOf("@");
var dotpos=d.lastIndexOf(".");
if (atpos<1 || dotpos<atpos+2 || dotpos+2>=d.length)
{
alert("Not a valid e-mail address");
return false;
}
function validateEmail(email) {
var re = /^(([^<>()[]\.,;:\s@\"]+(.[^<>()[]\.,;:\s@\"]+)*)|(\
".+\"))@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}])|(([a-zA
-Z-0-9]+.)+[a-zA-Z]{2,}))$/;
return re.test(email);
}

}
</script>
<script type="text/javascript">
$(document).ready(function(){

//called when key is pressed in textbox
$("#contact").keypress(function (e)  
{ 
  //if the letter is not digit then display error and don't type anything
  if( e.which!=8 && e.which!=0 && (e.which<48 || e.which>57))
  {
    //display error message
    $("#errmsg").html("Number Only").show().fadeOut("slow"); 
    return false;
  } 
});

});
</script>
</head>
<body>
<?php
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "step1")) {
$insertSQL = sprintf("INSERT INTO membersadd (firstname, lastname, emails, password, retrypassword) VALUES (%s, %s, %s, %s, %s)",
GetSQLValueString($_POST['firstname'], "text"),
GetSQLValueString($_POST['lastname'], "text"),
GetSQLValueString($_POST['emails'], "int"),
GetSQLValueString($_POST['password'], "int"),
GetSQLValueString($_POST['retrypassword'], "int"));

mysql_select_db($database_ONCV, $ONCV);
$Result1 = mysql_query($insertSQL, $ONCV) or die(mysql_error());
}
?>
</head>
<form id="form1" name="abc" method="post" action="membersadd.php" onsubmit="return validateForm()">
<div style="background-color:#ff3300; font-family:Arial, Helvetica, sans-serif; color:#000000; padding:5px; height:22px; width:390px;">

<div style="float:left;">
<div align="center"><strong>Members Registration</strong></center></div>
</div>
<div style="float:right; margin-right:3px; background-color:#cccccc; width:25px; text-align:center; height:22px;"><a href="loginme.php">X</a></div>

</div>
<table width="368" align="center">
<tr>
<td colspan="2"><div style="font-family:Arial, Helvetica, sans-serif; font-size:14px;">All Field Mark with asterisk (<span class="style1"><b></b></span>) must be filled up</div></td>
</tr>
<tr>
<td colspan="2"><div style="font-family:Arial, Helvetica, sans-serif; color:#FF0000; font-size:12px;"><?php
if( isset($_SESSION['ERRMSG_ARR']) && is_array($_SESSION['ERRMSG_ARR']) && count($_SESSION['ERRMSG_ARR']) >0 ) {
echo '<ul class="err">';
foreach($_SESSION['ERRMSG_ARR'] as $msg) {
echo '<li>',$msg,'</li>';
}
echo '</ul>';
unset($_SESSION['ERRMSG_ARR']);
}
?></div></td>
</tr>
<tr>
<td width="120" valign="top"><div align="right">Firstname:</div></td>
<td width="236"><input type="text" name="firstname">
<span class="style2">
</span></td>
</tr>
<tr>
<td valign="top"><div align="right">Lastname:</div></td>
<td><input type="text" name="lastname">
<span class="style2">*</span></td>
</tr>

          <tr>
            <td valign="top"><div align="right">Email:</div></td>
            <td><input type="text" name="email">
              <span class="style2">*</span></td>
          </tr>
          <tr>
            <td valign="top"><div align="right">Password:</div></td>
            <td><input type="password" name="pword">
              <span class="style2">*</span></td>
          </tr>
          <tr>
            <td valign="top"><div align="right">Retype Password:</div></td>
            <td><input type="password" name="ambot">
              <span class="style2">*</span></td>
          </tr>    

<tr>
<td valign="top">&nbsp;</td>
<td><input type="submit" value="save"></td>
</tr>
</table>

</form>

iv referenced the config.php
but stil not working
(<?php
$mysql_hostname = "localhost";
$mysql_user = "root";
$mysql_password = "";
$mysql_database = "OnlineCV";
$dbpass = ''; // ...to your installation
$appname = ""; // ...and preference

//Conect to server and select database.
mysql_connect("localhost","root","")or die ("cannot connect");
mysql_select_db("OnlineCV") or die("cannot select DB");

?> ) help even on validating email and password...pliz thanx in advance.

you can send your feedback @ ogaebue@yahoo.com....pliz!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.