I have a huge problem with some code in my site. I am creating a "Managers Login page" where the Head of the dept can allocate certain jobs to an specific user. I want the manager to complete the form and the system should send the form and hyperlink to the Dept Head.

wil anybody be able to assist me with this ? I have been struggling for a long time now?
Please let me know if you can.

P.S I am fairly new at PHP coding....:D

Thanking you in advance.:thumbsup:

Redcoder

11-09-2012, 08:42 PM

Remember to close the <form> tag with</form>.

What is the problem exactly Sending the form by email , form submission
displaying the form contents to the department head or what?

Lorinda

11-12-2012, 04:48 AM

Hi There,

Thank you for responding. The problem is that I have tried to get the code right to get the mail to send in the first place. But it does not want to send, as a metter of fact it gives me an error if I add the code to the existing post7.php and also how do I get the system to allocate the email adress of the user ? As mentioned I am new at this and isn't doing to bad a job but only struggling with the emails.

Scenario:

Manger types the spec in on the system, allocates it to a specific user, the user then has to receive a mail with the hyperlink of where the specific spec is, the user then clicks on the hyperlink and completes the information that he/she has changed on the spec. This way the manager can track what the user has done on the spec. This will allow the manager also to make sure that the user does not change the spec number but only the times and what he/she has done.

Does that make sence at all ?

Can you please help me I have been struggling with this for almost a week :(

Hope to hear from you soon :)

Redcoder

11-13-2012, 08:13 PM

To allocate the email of the user, the manager can type it directly and then you can have code that reads the values and inserts it into the mail function. Or you can have the email addresses stored in the database.

For more info on mail() function, check out.

http://php.net/manual/en/function.mail.php

http://www.w3schools.com/php/php_mail.asp

Lorinda

11-14-2012, 05:09 AM

Thak you very much. :thumbsup: I have read through the tutorials and worked on the following quote:

See the Semi-colon problem in the above code comments.
If it does not echo the success message, what does mysql_error() print out then?

tangoforce

11-14-2012, 03:35 PM

<?php

if(isset($_POST['submit']))

Can I just take a moment to point you to my signature?

The above line of code is known for being troublesome in IE. If you use a text box and the user hits enter then you're in for trouble. If you've no box and a user is forced to click the button then you'll be ok.

Lorinda

11-15-2012, 05:11 AM

Awesome, thank you very much, it works. :thumbsup: :D

Now all I have to try and do is get a hyperlink back to that specific form on the email ? You guys know how to do that ?