PDA

View Full Version : More html aid please


Kruno
05-18-03, 03:20 AM
I have a feedback form and I want to have the person filling in the form to be able to click 'submit' and then have it e-mailed to me WITHOUT having to open up outlook or an e-mail program. I want the form to be submitted quietly when the person clicks submit.

Thanks

SurfMonkey
05-18-03, 05:53 AM
That's getting a bit more complicated :D

Do you have access to server side scripting e.g. Perl or PHP? Or do you have to do everything client side? In which case it's a job for javascript, but you wont just be able to secretly post the form data.

Kruno
05-18-03, 07:15 AM
Originally posted by SurfMonkey
That's getting a bit more complicated :D

Do you have access to server side scripting e.g. Perl or PHP? Or do you have to do everything client side? In which case it's a job for javascript, but you wont just be able to secretly post the form data.

Nuts, I haven't learnt Dynamic HTML yet (PHP, PEarl, Javascript, etc...). Man I am stuffed. :/

I would like the simplest way of doing it.

SurfMonkey
05-18-03, 08:28 AM
Well there isn't really a simple way of doing it, html isn't smart enough and javascript isn't powerful enough to do much processing if you are rsetricted to purely client side processing.

I take it your form looks something like:


<form name="form" method="post" action="http://www.somewhere.com/cgi-bin/somescript.someextension>
<textarea name="textarea" cols="80" rows="25"></textarea>
<input name="Submitbutton" type="submit" value="Submit">
</form>


Where you need access to a dinky script on the server to process your data. It laso depends what you want to do with it post submition, do you want it mailed to yourself or are you going to store it in a database?

I can write you scripts to make anything happen but I need to know what kind of server access you have, what cgi code you can run etc... ;)

silence
05-18-03, 05:57 PM
yap....and all u need is little bit of php on other side.

something like....

</?php
$text = $_POST['textarea'];
mail ( _your_mail_ . $text );
/?>

lose "/" ;)

i think this should work if u have php on ur web server.....

outriding9800
05-18-03, 07:57 PM
if the server is running iis and has the frontpage extentsions loaded you can code it with frontpage.

if you need the code let me know

DaveW
05-18-03, 08:08 PM
Originally posted by silence
yap....and all u need is little bit of php on other side.

something like....

</?php
$text = $_POST['textarea'];
mail ( _your_mail_ . $text );
/?>

lose "/" ;)

i think this should work if u have php on ur web server.....

You got all that KILER? We will be testing you on it tomorrow ;)

Kruno
05-18-03, 11:02 PM
Thanks guys. Problem is that I don't know if the Uni webserver supports PHP. :cry:

Maybe I need to do it the old fashion way? I will ask my teacher about it.

Thanks again guys.

stncttr908
05-19-03, 09:13 AM
If it doesn't, you can always install it on your local system along with apache webserver and mysql just to give it a try.

http://www.php.net/downloads.php
http://httpd.apache.org/download.cgi
http://www.mysql.com/downloads/index.html

SurfMonkey
05-19-03, 12:15 PM
You should also try out the DevShed forums, they're pretty good for answeign questions on huge numbers of, web based, programming topics.

silence
05-20-03, 05:53 AM
Originally posted by K.I.L.E.R
Thanks guys. Problem is that I don't know if the Uni webserver supports PHP. :cry:

Maybe I need to do it the old fashion way? I will ask my teacher about it.

Thanks again guys.

write this....

<?php
phpinfo ();
?>

call it...info.php for example...and upload to server, then just run it.
like http://_full_adress_/info.php

if there is php on server u'll get all info u need.