Originally posted by xoggoth
View Post
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Reply to: Java Scripts help please !!
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "Java Scripts help please !!"
Collapse
-
-
If so, you now need to move the <FORM .... and </FORM> lines around your actual form where the user sticks stuff in (rather than having a form within a form as my quick fix has, I think). Formail will then automatically send you what they have put in and can also tell them on the page.
You appear to have an order form action that won't do anything as it is referring to a script on a desktop. Maybe whoever wrote the page has done the work already, where is order.php?
<FORM method=post name=order_form
action=file:///C|/Documents%20and%20Settings/Build_Machine/Desktop/order.php>
Leave a comment:
-
Hmm. It must be calling the script as the redirect is working and is no cgi error so you must have referer ok. Have you checked the notes on formmail?
http://www.scriptarchive.com/formmail.html
Ps Just tried it again and have a formmail thank you message which I did not get last time. Did you just sort it?
Leave a comment:
-
I know with freehostia the "to field" / from has to be a hosted email address.
Also needed SMTP enabled.
Don't know if this is your problem, but it was mine,
Leave a comment:
-
right, got it so we've no errors now......except I don't get an email !!!!
www.easyslidescanning.co.uk\order1.html
Leave a comment:
-
looks like we may be getting somewhere.......
just need to find the location of the sendmail app on an easyspace.com windows server.
Leave a comment:
-
I see there is an anti spam referers field in the cgi which may explain that but it obviously knows perl so appears almost there. Will send script. Although is freeware, terms do not allow post on net.
PS Link in your private messages
PPS It would be a bit of a prob if sites could access mailers on others come to think of it.Last edited by xoggoth; 2 September 2009, 15:06.
Leave a comment:
-
Originally posted by xoggoth View PostActually think you can just test it out with your mail in recipient above and replace thankyou page by one of your own. Obviously would not want my mailer used indefinitely plus association of a business with unsavoury ranty xoggoth is not a plus point.
ok - I've given it a go
www.easyslidescanning.co.uk/order1.html
Get an error from your CGI script. I need to tidy the submit button up - but if we can sort out the cgi we may be onto a winner. Can you send me the cgi script please.....
Leave a comment:
-
Originally posted by xoggoth View Post<input type='hidden' name="recipient" value="[email protected]"/>
{snip}
Security is another problem.
Leave a comment:
-
thanks - I'll give it a go now.
How can I get the cgi script onto my server then ?
Leave a comment:
-
Actually think you can just test it out with your mail in recipient above and replace thankyou page by one of your own. Obviously would not want my mailer used indefinitely plus association of a business with unsavoury ranty xoggoth is not a plus point.
Leave a comment:
-
Did a quick messy fix that works from my desktop. Click the submit button, leave cosmetic details to you. Change this:-
<TD><A class=style9 onclick=printpage()
href="http://www.easyslidescanning.com/order.html#"
value="Print Copy of Order Form">PRINT PAGE</A> <BR><SPAN
style="FONT-WEIGHT: normal" class=style9>then</SPAN> <BR><A class=style9
href="http://www.easyslidescanning.co.uk/">Click then go to home page</A>
</TD></TR></TBODY></TABLE><!-- Start of StatCounter Code -->
To this:-
<TD><A class=style9
href="http://www.easyslidescanning.com/order.html#"
value="Print Copy of Order Form">
<form onSubmit="printpage()" action="http://xoggoth.org/praise/xogpraising.cgi" method="post" name="eorder">
<input type='hidden' name="recipient" value="[email protected]"/>
<input type='hidden' name="subject" value="Email xoggoth"/>
<input type='hidden' name="required" value=""/>
<input type='hidden' name="redirect" value="thankyou.html">
<input type='hidden' name="env_report" value="REMOTE_HOST">
<input type='hidden' name="print_blank_fields" value="1">
<input type='hidden' name="redirect" value="thankyou.html">
<INPUT name=submit type=submit value=Submit>
</FORM>
</A> <BR><SPAN
style="FONT-WEIGHT: normal" class=style9>then</SPAN> <BR><A class=style9
href="http://www.easyslidescanning.co.uk/">Click then go to home page</A>
</TD></TR></TBODY></TABLE><!-- Start of StatCounter Code -->
Upload that (use new page!!) and clicking submit should print plus it sends an email to ME. That is obviously not terribly useful to you (or me as is using my bandwidth) so the next thing is to change the http://xoggoth.org/praise/xogpraising.cgi in the action to refer to a mailer on your server. That is just freeware formmail in perl, if you can use perl, message me and I can send you copy. Lots of other freeware mailers available, usually all you have to do is change recipient, some of above form fields and upload.
Security is another problem.Last edited by xoggoth; 2 September 2009, 13:15.
Leave a comment:
-
It seems his entire site is HTML, i.e a front-end only. I'm of the view any real online business will benefit from having something running on the server... let users login to see the status of their order, let them ask questions through the website, etc.
edit: It might make the printing part much easier. I'm not sure how much a barrier it is giving users detailed instructions, and making them print that quite messy form onto multiple pages. A server part would let you save an electronic copy immediately for your own use, and you could generate a PDF or other special printable version on the server which the user can then print... you can even email a copy to the user or something if you like.Last edited by d000hg; 2 September 2009, 12:57.
Leave a comment:
-
He isn't using a form though. Does he need to bung one in or can the post and method things be done from jscript?
Leave a comment:
-
Originally posted by Bunk View PostBasically, you need to change the action attribute of your form to point to the page which will process it, something like
<form name="order_form" action="processform.aspx" method="post">
PM me if you can help.
Leave a comment:
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Streamline Your Retirement with iSIPP: A Solution for Contractor Pensions Sep 1 09:13
- Making the most of pension lump sums: overview for contractors Sep 1 08:36
- Umbrella company tribunal cases are opening up; are your wages subject to unlawful deductions, too? Aug 31 08:38
- Contractors, relabelling 'labour' as 'services' to appear 'fully contracted out' won't dupe IR35 inspectors Aug 31 08:30
- How often does HMRC check tax returns? Aug 30 08:27
- Work-life balance as an IT contractor: 5 top tips from a tech recruiter Aug 30 08:20
- Autumn Statement 2023 tipped to prioritise mental health, in a boost for UK workplaces Aug 29 08:33
- Final reminder for contractors to respond to the umbrella consultation (closing today) Aug 29 08:09
- Top 5 most in demand cyber security contract roles Aug 25 08:38
- Changes to the right to request flexible working are incoming, but how will contractors be affected? Aug 24 08:25
Leave a comment: