PDA

View Full Version : submiting code


wolf202
October 23rd, 2002, 12:29 AM
hi its me again ok on my site (http://ca.geocities.com/manitoban_fishin/) i want people to submit fishing stories so i need a code that lets yuo submit text right to my email or some sort of acount i also need one to submit pictures thanx

:rolleyes: Matt:no:

degsy
October 23rd, 2002, 01:14 AM
If you have PHP available then you can use
http://www.dtheatre.com/scripts/formmail

wolf202
October 23rd, 2002, 02:15 AM
thats cool i got the code and customized it a little butt there is a couple of problems here is the code:

<form method="post" enctype="multipart/form-data"

action="formmail.php">
<input type="hidden" name="MAX_FILE_SIZE" value="1000000">
<input type="hidden" name="path_to_file" value="/www/uploaded/files">
<input type="hidden" name="require" value="email,phone_no">
<input type="hidden" name="recipient"

value="manitoban_fishin@yahoo.ca">
<input type="hidden" name="env_report"

value="REMOTE_HOST,HTTP_USER_AGENT">
<table>
<tr>
<td>
Option 1: <input type="checkbox" name="multi[]" value="option

1"><br>
Option 2: <input type="checkbox" name="multi[]" value="option

2"><br>
Option 3: <input type="checkbox" name="multi[]" value="option

3"><br><br>
</td>
</tr>
<tr>
<td>
<select name="multi2[]" size="3" multiple>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
<option>Option 4</option>
<option>Option 5</option>
</select>
<br>
</td>
</tr>
<tr>
<td>Your Phone:</td><td><input type=text name="phone_no"></td>
</tr>
<tr>
<td>Your Email:</td><td><input type=text name="email"></td>
</tr>
<tr>
<td>Your Image:</td><td><input type="file" name="file"></td>
</tr>
<tr>
<td>What you think about me:</td><td><textarea name="What you think

about me" cols="40" rows="3"></textarea></td>
</tr>
<tr>
<td colspan="2"><input type="submit"><input type="reset"></td>
</tr>
</table>

<br><br><hr>
This form is powered by <a

href="http://www.lumbroso.com/scripts/">Jack's Formmail.php!</a>

</form>

ok i want the option stuff gone i don't even know what it is and when i try to send something i get page is not there try it here click here (http://ca.geocities.com/manitoban_fishin/bigfish.html)

also how can it say tell me your story instead of "what you think about me?"

degsy
October 23rd, 2002, 10:06 AM
when i try to send something i get page is not there try it here


The code you have pasted is just the HTML, you also need to upload the PHP file.
The PHP file is what uploads the files and sends the data to you.


Simply remove the options that you do not want.

Steven.Bentley
October 24th, 2002, 10:06 PM
I don't thinkg Geocities support PHP on their servers, which would explain why it doesn't work ;)

wolf202
October 25th, 2002, 05:16 PM
is there a freesite that you know of that does?

maybe tripod or freeservers?

lufbra
October 25th, 2002, 05:48 PM
I believe Lycos allows it, since I know of someone who has a PHP based Bulletin Board set up on the free Lycos server!! :)

Dave.

wolf202
October 25th, 2002, 07:41 PM
thanx dave your a big help but where do i sign up for the lycos hosting? angelfire?

Steven.Bentley
October 25th, 2002, 08:55 PM
Sign up here

http://www.tripod.lycos.co.uk/

wolf202
October 26th, 2002, 02:00 AM
i got another problem. now when it submits it it says methed is not allowed see for yourself (http://manitoban_fishin.tripod.com/form.html)

degsy
October 26th, 2002, 02:43 AM
Looks like Tripot/Lycos doesn't allow you to use forms.

lufbra
October 26th, 2002, 02:50 AM
Hmmmmm, maybe they've changed since I signed up!! :(

Dave.

enat66
October 26th, 2002, 03:21 PM
Use bravenet, you can keep your website at lycos or geocities and just sign up for this and put it on your page. Of course it is free (http://www.bravenet.com/samples/emailforms.php)

wolf202
October 26th, 2002, 06:54 PM
hey entat my new windows son't work on my comp because of adaware so could you tell me address?

wolf202
October 26th, 2002, 07:03 PM
i found it but by the looks of it it doesn't have the send a picture with it option that i want. or am i making a mistake?

enat66
October 27th, 2002, 01:14 AM
oh oops sorry, my fault forgot you wanted to send pictures, although you probably could use your own php code and use bravenets services (it may be cgi or somethign else)

wolf202
October 27th, 2002, 03:21 PM
thinking, thinking yess i could do that and you know what? i will but there is on little problem i don't know how to edit php!:(