Log in

View Full Version : Preview resume!! Help me



megha_3000
09-30-2012, 04:55 AM
when anyone give the information of resume like name, education, exp etc..
on a form they can preview the resume and edit or modify their resume.
how can i do this?

ex- when anyone fill up a form for a job recruitment. after that they can preview their resume
and edit & modify resume. so they can print their resume

also the company can have the resume by a printed copy of resume.
so they can choose employee

please help me

bernie1227
09-30-2012, 05:02 AM
So what you'd want to do, is have a form, which they can then submit using the post form action and then retrieved with post, and then redirect to another page with the same form, populated with their previous answers which they could then submit to an SQL table, which the company could retrieve and view from the database and then just print the web page.

bernie1227
09-30-2012, 05:20 AM
For example you could have a form like:


<form action="edit.php" method="post">
<textarea cols="50" rows="4" name="resume"></textarea>
<input type="submit">
</form>

Which, when submitted will take you to a page called edit.php. On edit.php, you could have something like:


<form action="thankyou.php">
<textarea><?php echo $_POST['resume']; ?></textarea>
<input type="submit" name="submit">

<?php
$con = mysql_connect('localhost', 'user', 'pass') or die(mysql_error());
$db = mysql_select_db('dbname', $con) or die(mysql_error());
if(isset($_POST['submit'])){
$resume = $_POST['resume'];
$SQL = "INSERT INTO table1 VALUE('$resume')";
$result = mysql_query($SQL) or die(mysql_error());
}
?>

Which then submits the the resume to a database.

traq
09-30-2012, 07:00 AM
<?php
$con = mysql_connect('localhost', 'user', 'pass') or die(mysql_error());
$db = mysql_select_db('dbname', $con) or die(mysql_error());
if(isset($_POST['submit'])){
$resume = mysql_real_escape_string( $_POST['resume'] );
$SQL = "INSERT INTO table1 VALUE('$resume')";
$result = mysql_query($SQL) or die(mysql_error());
}
?>

You're demonstrating the concept well, but don't neglect the bare minimums of security... :D

bernie1227
09-30-2012, 07:04 AM
Ahhh yes, we should probably make sure they don't try and hack our system while writing a resume :p

traq
09-30-2012, 03:49 PM
Yes. Though the more likely problem is constant database errors

bernie1227
09-30-2012, 10:05 PM
Still, we don't want our tables dropped :p

ajfmrf
10-01-2012, 03:56 AM
Hey guys could a form be used along with a cookie (to save input ) with a review button to preview the info.This way a person can go back and make changes
where they want or add more until they are happy with the end result.At tha time a button to print and send the info would be there for the obvious reasons

bernie1227
10-01-2012, 07:12 AM
You could modify this (http://www.dynamicdrive.com/dynamicindex16/autosaveform.htm) script.

traq
10-02-2012, 02:09 AM
If the intention is to "save" the form submission, and then show them exactly what the saved info looks like, then the original approach bernie suggested is probably best (since you have to save the info to the database anyway).

If you want the user to be able to work on their resume over a period of time (saving it on their browser, rather than on your server), then the localStorage script would be the way to go - though, as I mentioned above, you'll still need to save it once they submit it.

bernie1227
10-02-2012, 04:51 AM
You may wish to use the php approach rather than the JavaScript, as the php would be much easier to customise to your needs than the dd script, and it would probably be easier to use the post method I mentioned rather than cookies. It really all depends on whether you want to use a really simple php script rather than a rather complicated JavaScript script.

ajfmrf
10-03-2012, 03:10 AM
I am working on a possible resume for you -megha_3000

Mind you I said working on it.

http://www.web-user.info/resume/niceforms1.html ( got the original script at(http://www.emblematiq.com/lab/niceforms/)

I am still working on the form itself but as you can see it will submit to a review( for us I waill call it that) copy which I added a print button.

After I add all the sections I will then need to work on the part to email it to someone-this is where I have a lot of questions but I will deal with that after I get to that point.

bernie1227
10-03-2012, 03:12 AM
just in case you forgot, you will need to add form-validation to it, as niceforms does not have form validation.