Google Answers Logo
View Question
 
Q: For Jose Leon Only (Another question for my text area) ( Answered 5 out of 5 stars,   0 Comments )
Question  
Subject: For Jose Leon Only (Another question for my text area)
Category: Computers > Programming
Asked by: galgal1-ga
List Price: $15.00
Posted: 22 Aug 2003 17:02 PDT
Expires: 21 Sep 2003 17:02 PDT
Question ID: 247782
Hello Jose,
I thought I was done but I have another problem. I have this text area
called resumeupdate.php?user=ball. If you go to it you can see that
the resume I uploaded is all scrunged up and the upload button is in
the text area, well at least the codes are (I think this is because
the resume I uploaded was HTML but I need this form to support those
kinds of resumes). I would like for the resume that was uploaded
earlier to go into the text area and the button to come out and go to
the bottom of the page. Also the resume is not in the format I
uploaded it in. It is all without spaces or indents or anything like
that. I want the people to be able to upload a resume from anywhere
(such as a web page or anywhere else) but I can't have it mess up
anything such as a HTML code would. Is there any way you can fix all
of this?

Best regards,
GalGal
Answer  
Subject: Re: For Jose Leon Only (Another question for my text area)
Answered By: joseleon-ga on 23 Aug 2003 02:58 PDT
Rated:5 out of 5 stars
 
Hello again, galga1:
   I have fixed the resumeupdate.php and checkupdate.php scripts to
show the resume with <pre> tags, because the stored resume is not in
HTML, but in plain text, this is a temporary solution, because I think
you want exclusively HTML resumes.

The text area is fixed, you had some problems with open and close PHP
tags, which are fixed now, and also, to put a value on a textarea is
<textarea>$resume</textarea> instead use the value attribute.

Regarding allow upload HTML resumes, please, confirm it, because I
will need to add special code to prevent some kind of hacking on your
site and limit the type of html tags an user would be able to input.
Also, tell me which script do you use for upload resumes and if you
want to allow both HTML and text resumes.

As in previous answers, feel free to request as many clarifications
you want, you have demonstrated to be a great asker and I'm totally
available to you.

Regards.

Request for Answer Clarification by galgal1-ga on 23 Aug 2003 08:43 PDT
Hello Jose,
Thank you for answering this question. I would really like for the
form to support HTML and plain text resumes. If it's not to much work
could you do this for me? Also that script that you gave me from the
last question (the one that makes all of the pages safe because the
login pops up if they are not logged in). Every time I put it on
another page that needs to be protected it makes an error. Could you
tell me how to put it in correctly or can you do it for me? Just to
remind you that you switched the login forms (paid account is now free
account login and free account is now paid account login). Could you
fix this mistake please?

Best regards,
GalGal

Clarification of Answer by joseleon-ga on 24 Aug 2003 02:51 PDT
Hello, galga1:
   I'm going to start add support for HTML and TXT resumes, could you
tell me the scripts you use to allow the user upload his/her resume?
Please, both for a free user and a paid user, I will modify them.
   
Regarding the secure login script, I'm going to explain you how it
works, and if you consider necessary, don't hesitate to request me to
protect as many pages you want, just tell me the names of the scripts
and which kind of user needs to access them (free or paid) and I will
modify them for you.

Here is how the login works:

-You have on your server a script called loginsample.php, it features
the most simplest way to authenticate, this is the code:

<?php
	//Connect to the database
	include "connect.inc.php";	
	
	//Include the data to access the authentication table
	include "freeaccount.inc.php";
	//include "paidaccount.inc.php";

	//Include login functions
	include "securelogin.inc.php";
	
	
	if (checkUserLogged())
	{
		//If it's logged, no problem, start showing all the form code
		echo "the user is logged!!";
	}
?>

-First, connects to your database using the line:

	include "connect.inc.php";	
	
-Next, includes the needed data to authenticate, this data depends if
the page is available to a free user or a paid one, that's why there
are two includes:

	include "freeaccount.inc.php";
	//include "paidaccount.inc.php";	
	
-Next, includes the secure login functions, a collection of functions
to know about the user, whether is logged or not, the username, and so
on
	include "securelogin.inc.php";

-Next is the most important line, it calls a routine called
checkUserLogged(), this routine returns TRUE if the user is logged on
the system and FALSE on the other case:

	if (checkUserLogged())....
	
-If the user is not logged will show the login form requesting the
user to log in.

-To protect a new script, you just need to copy this structure into
the header of your script.

Also, you say yo get an error, which error it is? This way I could
help you to understand it. In any case, don't hesitate to ask me to
protect the pages you want.

Regarding the *switch*, I have checked the both login procedures (paid
and free) and work well, could you tell me how do you know are
switched?

Regards.

Request for Answer Clarification by galgal1-ga on 24 Aug 2003 09:28 PDT
Hello Jose,
As for the resume upload I just want you to modify resumeupload.php
and checkresume.php. The free account can't upload any resumes or
pictures.

I tried to make my pages secure by copy pasting the script but it
don't work. Could I please request that you would do this for me on
the following files:

resumeupdate.php paid account
checkresume.php paid account
uploadformsingle.php paid account
uploadform2single.php paid account
uploadform3single.php paid account
uploadform4single.php paid account
uploadform5single.php paid account
uploadform6single.php paid account
uploadgasingle.php paid account
uploadga2single.php paid account
uploadga3single.php paid account
uploadga4single.php paid account
uploadga5single.php paid account
uploadga6single.php paid account
getdata.php paid account
getinfo.php paid account
checkupdate.php paid account
paidaccountmenu.php paid account
freeaccountmenu.php free account

Tell me if it's too much and I will pay extra.

As for the switched login forms I am sorry to trouble you with it but
I need this to work.

When I go to www.htauditions.com and the I click on my account form
the banner an option comes up that asks if I want paid account or free
account. When I choose the paid account option it goes to a login
form. I type in user:ball pass:ball (which is a paid account user name
and password) and it does not let me pass. Then I type in a free
account user:hello and pass:hello it lets me pass and goes to the
myaccount.php and shows Welcome hello at the top of the page. If I
were to choose free account I type in the password hello and user
hello (which again is a free account user and pass) it won't let me
pass. If I were to write user: ball pass:ball (which is a paid account
user and pass) it let's me pass. I don't know what is causing this but
I really need this to be fixed. Please help me with this. Thank you
for helping me with all of this ,I really apriciate your help. Have a
great day!

Regards,
GalGal

Clarification of Answer by joseleon-ga on 25 Aug 2003 00:20 PDT
Hello, galga1:
  Regarding HTML and TXT resumes, I will finish it asap, I will keep
you informed.
  
  Regarding to protect the scripts, all of them are protected, at
least, the list you sent me.
  
  Regarding the tip or extra payment, it's your sole decision, let's
first solve you problems, and after that you decide, that's why it's a
tip, there is no obligation... ;-)
  
  Regarding the switched logins, there was a problem with the login
form, do you remember I had to recode it because you lost it? The
password field need to be called pass instead password, now it works
ok, paid accounts can login on paid account pages and free accounts on
the free account pages. Test it and if there is another problem just
tell me.
  
Regards.

Request for Answer Clarification by galgal1-ga on 25 Aug 2003 07:05 PDT
Hello Jose,
I thank you for all of your help. You have been the best! I will close
this question by tomorrow. I will ask you more things in the future so
don't stop looking for my questions. Thanks to you I will finish this
web site soon. I don't know what I would have done without you! Thanks
for everything, you have been very nice to me.

Have a great day!


Regards,
GalGal

Clarification of Answer by joseleon-ga on 26 Aug 2003 00:37 PDT
Hello, galga1:
  If you want me to finish the HTML and TXT resume feature, keep this
question open just a few days more!!! ;-)

Regards.
galgal1-ga rated this answer:5 out of 5 stars
You are still the best I have seen thanks for all of the help!

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy