PDA

View Full Version : Anyone care to help a ROOKIE?


nochecks
12-27-2005, 10:40 AM
I have a online job application script i am trying to get it to email to me when they hit the submit.....and I cant get it to work. I will send it to anyone to look at, I don't have it on the site yet...

Any help would be appreciated

Mark

PsychoticDude85
12-27-2005, 10:42 AM
What capabilities does your server have? Does it support cgi? PHP? ASP/ASP.NET?

nochecks
12-27-2005, 10:59 AM
it is Powweb and they are compatible with all you listed. they site is not up yet... however I need the script functioning correct.

sorry I am so green.

Thanks
Mark

GDS
01-03-2006, 02:27 AM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>

</head>
<body>
<h2>Send info</h2>
<form method=post
action="mailto:yourmail@somewhere.net?subject=something"
enctype="text/plain">
<input name="about" type="hidden" value="anything">
Firstname <input name="firstname" type="text" value=""><br>
Lastname <input name="lastname" type="text" value=""><br>
<input id="SUBMIT_BUTTON" type="submit"
title="Send info to me." value="Send info to me">

</form>
</body>
</html>


Is this of any help?
GDS

PsychoticDude85
01-03-2006, 09:43 AM
If I remember correctly unless this is interpretted it only sends the information packaged in useless gobbledygook.

It's better (and safer - as your email is then hidden) to do it with the PHP mail() function. There are plenty of scripts up for download if you do not know how to make one, but basically you make a normal form with the action pointing to the script e.g:

<form method="post" action="yourscript.php">
<dl>
<dd>Your Name: <input name="name" type="text" class="text name" /></dd>
<dd>Your Email: <input name="email" type="text" class="text email" /></dd>
<dd>Your Message: <br />
<textarea name="message" type="text" class="text message">
Type your message here
</textarea>
</dd>
<dd><button>Submit</button></dd>
</dl>
</form>This is a fully valid form in xhtml, if you would prefer html then merely change the end of the inputs and br to > (no />).

This method send your email information as $POST_[] information for the script to collect and since you cannot read the PHP code without FTP/CPanel/Shell/etc access your email is hidden from any casual observer or spider that could add your email to a spam database.

I hope this helped, if you want advice on how to make your own PHP script then post here and I will try to help as best I can.

GDS
01-07-2006, 10:57 AM
TO PD85:
Wasen't this a client-side forum then?
My general opinion is that a task should be solved at the lowes technical level possible. Sure, you can solve this with PHP, but that does not mean that PHP is the right solution for all. The problem of leaving the email adress exposed, might be solved with a simple javascript. And conserning "gobbledygook", I don't know if this is a real problem in this case.

GDS

PsychoticDude85
01-07-2006, 12:11 PM
If that were the case why would you want a form at all? You would just use an <a href="mailto:"> link. This is not a low tech response. And tbf with yours I missed the enctype, but really why do you want an option that makes the user spend longer using the form? Plus you cannot use JS to hide the email as the email is obviously used when the mail client is opened, so that is not true.

It also rules out validation, you cannot stop blank fields because again they can be edited in the user's client. There are a lot of advantages to using a PHP solution and very little reason not to, as I said they are readily downloadable, so I also do not believe you that your method is much simpler at all.

I have no idea what you meant by 'Wasen't this a client-side forum then?', why does that mean he is therefore unable to take account of a better option if he hears it? I think this is a far safer, more useful, and (if you make/download a good script) harder to spam. There is no reason his email should be visible, there is also no reason the user should have to have a form and then also have to wait for his client to open anyway?

From:
email to me when they hit the submit
I interpret that he wants it to email to him rather than open the mail client. So I gave him an answer that provided that, yours does not so in my interpretation it does not provide the required answer.

Terminator1138
01-08-2006, 07:13 PM
Well if I may intervene, there are many ways to do the above and really, one should not discredit a more advanced method when the above poster did not state their knowledge and what was exactly they had. Both methods will get the job done and both okay depending on the end user.

The person stated they are green so my guess is more research is needed on what is easiest to use and function. I would also wonder if this was a true script or just html called as a script. Perhaps its javascript. More info is needed and perhaps sample code would help.

So for the record, both methods are excellent ways of doing something with two different means and technologies. I think we just need a bit more info