Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 25, 2012, 07:55:17 AM

Pages: [1]   Go Down
  Print  
Author Topic: Need some help with a HTML form  (Read 662 times)
Codeman05
Space Explorer
***
Offline Offline

Posts: 7


« on: April 19, 2003, 01:34:06 AM »

Hi, I'm working on a from my site that can be filled out and emailed to me.
It all works fine except for one part. I have a file upload "field" so that people can attach a picture/file to the form and have it sent with the other information.

Well, the file never comes though with the email. When it gets to the file upload field, this is what I get more or less:

"file-z: c:/file.jpg: /tmp/cpane3upload/blahblahblahblabhlabh"

and I can't find that listed directory on the server.
Is this type of thing not possible on this host or what could I be doing wrong?
Thanks!
Logged
Stephanie®
Master Jedi
*****
Offline Offline

Posts: 1096



« Reply #1 on: April 19, 2003, 02:50:07 AM »

Can you show us a little of the script you're using?
Logged

stephan
Guest
« Reply #2 on: April 19, 2003, 05:52:11 AM »

Hi,

There is a problem with your script.

It seems to have been written for use on a windows server.

Linux doesn't use C:

You can either change the script, or the script's settings slightly, or download one which has been made for linux/unix from www.hotscripts.com

It's up to you. If you need help, you could paste the script here.
Logged
Codeman05
Space Explorer
***
Offline Offline

Posts: 7


« Reply #3 on: April 19, 2003, 10:06:16 AM »

Ok here you go, sorry I thought I had posted it


<form action="http://*****.net/cgi-sys/FormMail.cgi" method="post" enctype="multipart/form-data" name="form1">
<input type=hidden name="recipient" value="webmaster@*****.net">
<input type=hidden name="subject" value="Form Submission">
<input type=hidden name="redirect" value="http://www.******.net/thankyou.htm">
  <p>Your Name:
    <input name="Name" type="text" id="Name" size="30">
    <br>
    <strong>Specs and Mods</strong><br>
    YJ Year:
    <input name="Year" type="text" id="Year" size="4" maxlength="4">
    <br>
    Engine:
    <input name="Engine" type="text" id="Engine" size="15">
    <br>
    Transmission:
    <input name="Tranny" type="text" id="Tranny" size="15">
    <br>
    Wheels:
    <input name="Wheels" type="text" id="Wheels" size="30">
    <br>
    Tires:
    <input name="Tires" type="text" id="Tires" size="25">
    <br>
    <strong>Modifications</strong><br>
    Suspension Lift:
    <input name="Suspension" type="text" id="Suspension" size="30" maxlength="40">
    <br>
    Other Lift:
    <input name="OtherLift" type="text" id="OtherLift" size="30" maxlength="40">
    <br>
    <strong>Extras</strong><br>
    <textarea name="Extras" cols="40" id="Extras"></textarea>
    <br>
    <strong>Pictures (3 max)</strong><br>
    <input name="file1" type="file" id="file1" size="30" maxlength="100">
    <br>
    <input name="file2" type="file" id="file2" size="30" maxlength="100">
    <br>
    <input name="file3" type="file" id="file3" size="30" maxlength="100">
    <br>
    <input type="submit" name="Submit" value="Submit">
    <input type="reset" name="Submit2" value="Reset">
  </p>
  </form>
Logged
stephan
Guest
« Reply #4 on: April 19, 2003, 10:36:07 AM »

I need the other script,

http://*****.net/cgi-sys/FormMail.cgi   -   that one
Logged
Codeman05
Space Explorer
***
Offline Offline

Posts: 7


« Reply #5 on: April 19, 2003, 12:38:10 PM »

oh sorry my bad  Smile

Well when I pull up the address this is all I get:

body bgcolor="#FFFFFF">
<table><tr><td bgcolor=#cccccc>FormMail-Clone</td></tr><tr><td>
This is FormMail-clone, a clone of FormMail.cgi.  It is a clean room version for legal purposes (a less restrictive liscense), but should behave the exact same way as Matt Wright's Original, but contain none of his code.
</td></tr></table>

Should I be looking somewhere else?
Thanks for the help
Logged
stephan
Guest
« Reply #6 on: April 19, 2003, 08:19:11 PM »

You can download it by ftp, that's the best way. Otherwise it will be executed instead of viewed.
Logged
Codeman05
Space Explorer
***
Offline Offline

Posts: 7


« Reply #7 on: April 19, 2003, 11:13:10 PM »

ok, well I took another look around...and I can't access that cgi-sys directory on the ftp. I got the address from the "control panel" under the CGI tab...maybe its not correct anymore, not sure. I guess it has to be there or the form wouldn't send anything at all, but I cant seem to be able to find it.

Any suggestions?
Logged
TWebMan
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3112



WWW
« Reply #8 on: April 21, 2003, 06:20:48 AM »

you can switch to php, and use a file upload script available at:
http://twebman.lunarpages.com/files/phpup.zip

There's a php form maker at:
http://twebman.lunarpages.com/php/phpmailer.php
Logged

"Computers cause people to make more mistakes than any other invention in history, with the possible exception of handguns and tequila."  - Unknown
"Liberty of any kind is seldom lost all at once." - D. Hume
Every day is an Ode to Joy
The planet will be fine... and so will your site
Codeman05
Space Explorer
***
Offline Offline

Posts: 7


« Reply #9 on: April 21, 2003, 07:37:55 AM »

Thx Tweb, that looks like the way to go.
I've got it all working, except the image uploading it appears....
I uploaded "upload script" and made a new php form.
http://www.JeepYJ.net/submit1.php
Am I skipping a step?
Logged
TWebMan
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3112



WWW
« Reply #10 on: April 21, 2003, 09:37:02 AM »

I would suggest making it a 2-step process.  Let them fill out the regular form, then when they submit, let it take them to a second form where they choose the images.
In the upload script, there you need to set the value of some variables.  The script will only upload files, not send them via email as attachments.

There is a script to do the whole kaboodle (send form field values AND images as attachments) at http://phpmailer.sourceforge.net
There's a little bit of setup involved (what's new?) but it looks pretty good.
BTW check out my site http://www.autorepaircd.com you may find it interesting Wink
Logged

"Computers cause people to make more mistakes than any other invention in history, with the possible exception of handguns and tequila."  - Unknown
"Liberty of any kind is seldom lost all at once." - D. Hume
Every day is an Ode to Joy
The planet will be fine... and so will your site
Codeman05
Space Explorer
***
Offline Offline

Posts: 7


« Reply #11 on: April 21, 2003, 06:06:17 PM »

Thanks, I'll give the all in one a shot first hehe. I'll be sure and check out your site later. Thx for the help
Logged
Codeman05
Space Explorer
***
Offline Offline

Posts: 7


« Reply #12 on: April 21, 2003, 06:18:29 PM »

ahhh got it Very Happy
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: