| jonnymorris |
|
NetHosted Customer

Joined: 22 May 2006 Posts: 78
|
Posted: Wed Jun 14, 2006 10:00 pm Post subject: absolute newbie cgi-bin question (sorry!) |
| |
Hi! Yes, sorry, I'm sure I've seen this documented somewhere but for the life of me can't find it now
I'm trying to create an email form, following the guide for cgiemail, but don't know where the ACTION link should point - in the example it points to ACTION="http://web.mit.edu/bin/cgiecho/wwwdev/cgiemail/questions3.txt" but I don't know how this relates to my setup. I have my email template file in the same place as my html page which has the form on it, (http://test.jonathanmortimer.co.uk/port/email_template) should it point to this? Do I have to point to the cgi script somewhere?
Please excuse me for appearing a bit dim here, I've never touched a cgi-bin before! I'm also wondering if it might be a good idea to have one of those 'type what you see here' things, and how complicated that would be to set up.
Thanks! |
|
| Back to top |
|
| NetHosted - Andrew |
|
NetHosted Staff

Joined: 22 Mar 2004 Posts: 5684
|
|
| Back to top |
|
| jonnymorris |
|
NetHosted Customer

Joined: 22 May 2006 Posts: 78
|
Posted: Wed Jun 14, 2006 10:55 pm Post subject: |
| |
| So should I place my email_template text file in the cgi-bin folder and set the ACTION link to that? |
|
| Back to top |
|
| NetHosted - Andrew |
|
NetHosted Staff

Joined: 22 Mar 2004 Posts: 5684
|
|
| Back to top |
|
| jonnymorris |
|
NetHosted Customer

Joined: 22 May 2006 Posts: 78
|
Posted: Tue Apr 01, 2008 11:54 am Post subject: Moved! |
| |
Been a long time, I know, but I've moved my portfolio and now the CGI appears to be messed up.
My portfolio website and contact form now reside in http://www.jonathanmortimer.co.uk/portfolio/
Where do I have to place my email_template file? How do I link to the cgi from my form so that it will pick up this file?
Thanks!  |
|
| Back to top |
|
| NetHosted - Andrew |
|
NetHosted Staff

Joined: 22 Mar 2004 Posts: 5684
|
Posted: Tue Apr 01, 2008 12:36 pm Post subject: |
| |
Hi,
Place the txt file inside your portfolio/cgi-bin/ folder. Then update your action link to reflect that new location.
Thanks,
Andrew _________________ | Andrew Bassett
| Managing Director, NetHosted Ltd.
| Resellers, take a look at overselling !
| Members, tell us what you think of NetHosted! |
|
| Back to top |
|
| jonnymorris |
|
NetHosted Customer

Joined: 22 May 2006 Posts: 78
|
Posted: Tue Apr 01, 2008 12:50 pm Post subject: |
| |
I'm actually still in the /test2 folder, but it will be moved to /portfolio as soon as everything is finished.
I copied the cgi-bin folder from / to /test2 and updated my form action to point to http://www.jonathanmortimer.co.uk/test2/cgi-bin/cgiemail/email_template.txt
but I get a 404 not found when I try to use the form to send an email.
My email_template.txt file is in the /test2/cgi-bin folder. |
|
| Back to top |
|
| Garry |
|
NetHosted Customer

Joined: 03 Oct 2005 Posts: 261 Location: Lincoln, UK
|
|
| Back to top |
|
| jonnymorris |
|
NetHosted Customer

Joined: 22 May 2006 Posts: 78
|
Posted: Tue Apr 01, 2008 1:57 pm Post subject: |
| |
Thanks for your reply.
I know cgiemail is a program, but how do I use it? It was working before when my portfolio was in / but now that I've moved things it seems to be broken.
Last edited by jonnymorris on Tue Apr 01, 2008 2:20 pm; edited 1 time in total |
|
| Back to top |
|
| NetHosted - Andrew |
|
NetHosted Staff

Joined: 22 Mar 2004 Posts: 5684
|
Posted: Tue Apr 01, 2008 2:19 pm Post subject: |
| |
It looks like you haven't created the subdomain test2, but simply created a directory test2. In that case you should use the cgi-bin folder located in your public_html foldler. You only use cgi-bin alternate cgi-bin folders when they have been created when you created a subdomain.
Thanks,
Andrew _________________ | Andrew Bassett
| Managing Director, NetHosted Ltd.
| Resellers, take a look at overselling !
| Members, tell us what you think of NetHosted! |
|
| Back to top |
|
| jonnymorris |
|
NetHosted Customer

Joined: 22 May 2006 Posts: 78
|
Posted: Tue Apr 01, 2008 2:21 pm Post subject: |
| |
Ah, so I have to place my email_template.txt file in the /cgi-bin folder?
Oh no, it's OK, I have it working now. Placed email_template.txt in /
Seems very confusing!! |
|
| Back to top |
|
| NetHosted - Andrew |
|
NetHosted Staff

Joined: 22 Mar 2004 Posts: 5684
|
Posted: Tue Apr 01, 2008 2:52 pm Post subject: |
| |
Well the cgi-bin folder is a special folder, you can't just create a cgi-bin folder it has to be created by cPanel when it creates your account or a subdomain on it.
Glad you have it working now!
Thanks,
Andrew _________________ | Andrew Bassett
| Managing Director, NetHosted Ltd.
| Resellers, take a look at overselling !
| Members, tell us what you think of NetHosted! |
|
| Back to top |
|
| jonnymorris |
|
NetHosted Customer

Joined: 22 May 2006 Posts: 78
|
Posted: Tue Apr 01, 2008 3:06 pm Post subject: |
| |
Thanks for your help, I'd be lost without it  |
|
| Back to top |
|
User Permissions |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
| |