Jump to content

creating a submition form on a webpage


grim_reefer
 Share

Recommended Posts

when i upload i just use Internet Explorer's FTP. i dont use whichever features we have available in our BT connect internet package

our current homepage at www.startermotordrives.co.uk/fishnetproductions i created yesterday using Front Page (and my old Word-created webpage as a visual template) and then uploaded

i cant use the WSC (BT website creator) to make the form, because im not going to pay for that (unless there was a need to)

ive been looking at that link you posted

With extensions your site can only be published with the Internet Business Pack (IBP) and Web Publisher as part of your account

to create a form on a webpage with FrontPage it would have to have frontpage server extensions?.. my understanding of this at the minute is a bit limited

Link to comment
Share on other sites

Upon trying Tonys php script - i found that my BT webspace does not support php scripting, so i tried my AOL webspace - and the form "worked" on that.. i say "worked" because the script was definitely running when clicking the button - but no emails have been recieved (i tried it with my BT email account in the script, and then with my AOL email account)

i have checked on that W3Schools website about php - and the scripting is exactly how it is shown to work on that website, here: http://www.php.net/manual/en/function.mail.php

why is it not working for me?? :huh: can anyone help, Tony doesnt appear to be available right now

Link to comment
Share on other sites

Hi there

I am no php expert, i did write the script, OK copied from a book but with a few mods, like adding the title and from lines to appear on the mail. I do remember that it was a bit of a pain to get running, but i just kept making sure that all the details of mine were correct, and all of a sudden it worked.

About six months ago i did exactly the same for a friend as i have just done for you and it worked fine.

Have you tried to send the mail to your AOL account? or try sending it to [email protected] and i will let you know if i get the mail. It could be that the AOL server is actually running the script when you click send, but not actually sending the email. i don't really know.

Could you send me your php script, and i could try it on my server to your email address, if it works i can host the script for you.

All the best and good luck.

Tony

Link to comment
Share on other sites

i checked the php command and it is exactly how it should be according to W3Schools/php website. the only things i can think of is - as you said - the AOL server is running the script but not sending the email.. or the php script is not recieving the data from Contact.htm file. i tried it with my AOL email account as the address for the form's entered data to be emailed to, and my BT email account - neither have worked

BTW, i have just tried it to [email protected] now

Link to comment
Share on other sites

Hi

OK it is now 12:20 my time and i have no email; So can you send me your php script and i will test it on my server. (don't worry we will get this thing working one way or another.

Tony :)

Link to comment
Share on other sites

hi tony i havent created my form yet or anything, so to test i will just send the same form with my php script, okay?

can i ask, where you have the words "[email protected]" and "[email protected]" - or something similar.. this is what it will show in the "From" field of a recieved message, am i correct?? and can be whatever i choose?

also it appears twice, once as MailForm, once as WebForm

to anyone reading this thread

my website has been updated: http://www.startermotordrives.co.uk/fishnetproductions id appreciate any comments / errors / problems with browsers being reported :) (not much has changed actually lol)

Link to comment
Share on other sites

I hope your not leaving those links on the right red, if you do change the background.

Get a less bland colour for the main background.. Grey is sad :(

Make a menu bar along the top of your site with key features, like home etc..

Have contact information at the bottom of all sites (done though pages made with PHP a lot easier)

Have your menu at the left be collapsable/expandable.

Just some thoughts :)

Link to comment
Share on other sites

on a side note.. im having trouble running ASP scripts (again i dont know if its to do with my server(s) or what).. basically, im just trying a simple ASP script from W3Schools to make a counter - but when i upload the ASP file, and load it in a browser - it just attempts to download the ASP file, or, just shows the code source

what is happening here?

as ASP is a scripting language like PHP, does it need to be parsed through a HTML file? what command is used to do this because i cannot find out how

according to W3Schools - i can run scripts through certain "events" in HTML - using the onload command to run the script when the HTML page it loaded - but it doesnt show any examples of how to use the command... (if i wanted "index.html" to run the script "counter.asp" when it is loaded)

Link to comment
Share on other sites

no worry.

can i ask, where you have the words "[email protected]" and "[email protected]" - or something similar.. this is what it will show in the "From" field of a recieved message, am i correct?? and can be whatever i choose?

also it appears twice, once as MailForm, once as WebForm

i just wanted to check about this with you before i modify it and send you the form and php script, to test

Link to comment
Share on other sites

ive been looking but i cannot find how to run an uploaded ASP script file from a HTML file (using HTML code)

when i just put the ASP script in the HTML code, it does not work (i assume it is not supposed to?)

and when i load the ASP through its location, as said, it just tries to download it - or just shows the code - so this is why im thinking it needs to be run through a HTML file

can anyone help me with this? :(

Link to comment
Share on other sites

no worry.

can i ask, where you have the words "[email protected]" and "[email protected]" - or something similar.. this is what it will show in the "From" field of a recieved message, am i correct?? and can be whatever i choose?

also it appears twice, once as MailForm, once as WebForm

Hi

Ok i have just tested it with a different email addy.

In the php script the "[email protected]" is the From field on the email you get sent. so you would put "Your website" or similar.

The "Feedback from website" is the subject line but with the senders details added eg Feedback from website from Mr tony west([email protected])

This gets the details from the text boxes you specify.

Tony

Link to comment
Share on other sites

one feature i was intending to add from the start was making the menu collapsable and expandable

ive figured how to do this with an .xml page - but i dont know how to make a style sheet for it

also do not know how to put it into a .html webpage

can anyone help?

heres the code i made:

<MENU000>
<SECTION001>Promoting Your Business - Why?
       <SECTION003>Through Advertising</SECTION003>
<SECTION003>Other Techniques</SECTION003>
</SECTION001>

<SECTION001>Modelling
       <SECTION002>Through Advertising</SECTION002>
<SECTION003>No Experience? Apply / Contact Us</SECTION003>
</SECTION001>

<SECTION001>Products / Services
       <SECTION003>Prices - small qty's.</SECTION003>
       <SECTION003>Prices - higher qty's.</SECTION003>
       <SECTION002>Brochures
 <SECTION003>Full Colour - Examples</SECTION003>
       </SECTION002>
       <SECTION002>Business Stationery
 <SECTION003>Examples</SECTION003>
 <SECTION004>ONLINE ORDER FORM</SECTION004>

       </SECTION002>
       <SECTION002>Catalogues</SECTION002>
       <SECTION002>Flyers / Leaflets</SECTION002>
       <SECTION002>Posters</SECTION002>
       <SECTION002>Web Design / Hosting</SECTION002>
</SECTION001>

<SECTION001>Advertising Spaces
<SECTION003>Airports</SECTION003>

<SECTION003>Billboards</SECTION003>
<SECTION003>Bus Shelters</SECTION003>
<SECTION003>Directories</SECTION003>
<SECTION003>Internet</SECTION003>
<SECTION003>Local Magazine / Directory</SECTION003>
<SECTION003>Magazines / Newspapers</SECTION003>

<SECTION003>Radio / TV</SECTION003>
<SECTION003>Stores / Shopping Centres</SECTION003>
<SECTION003>Street Ads</SECTION003>
<SECTION003>Taxis</SECTION003>
</SECTION001>

<SECTION001>Delivery Service / Distribution
<SECTION002>Public Businesses
 <SECTION003>In-Store</SECTION003>

 <SECTION003>Selected / Specialised Recipients</SECTION003>
 <SECTION003>Local / Selected Communities</SECTION003>
 <SECTION003>Large Scale Distribution</SECTION003>
</SECTION002>
<SECTION002>Trade Businesses
 <SECTION003>In-Store</SECTION003>
 <SECTION003>Selected / Specialised Recipients</SECTION003>

 <SECTION003>Local / Selected Communities</SECTION003>
 <SECTION003>Large Scale Distribution</SECTION003>
</SECTION002>
</SECTION001>

</MENU000>

i want SECTION001 styles to be bold and large. SECTION002 to be bold but smaller. SECTION003 to be small and not bold. SECTION004 to be same as SECTION003 but italic. i also am hoping i can figure how to make the expandable sections each have a words/phrase with them (for now, i have just placed them as the first thing after expanding) and make every single line also into a hyperlink with tooltip (i can do this easily, but not implemented in a expandable/collapsable menu)

Link to comment
Share on other sites

Hi Grim

My website is hosted with BT Connect. I have forms on my website and they gave me 3 lines of code for me to cut and paste. Therefore

1. Create your form tags <form </form>

2. Between the form tags go the code below

3. The first line > input an email address where you want the info to go

4. The second line > if the form is in an htm file named orders.htm then put the full website URL with the orders.htm at the end

5. The third line > This is the URL of the thankyou page when the user click on the SUBMIT button. You create this page yourself saying something like "Thank you - Your details have been submitted successfully".

This should do the trick Grim

-------------------------------------------

<form method=POST action=http://home.btconnect.com/cgi-bin/mailto/your_email_address_here>

<input type="hidden" name="Name_of _Form_here" value=&quot;http://www.URL_of_htm_page_form_is_in">

<input type="hidden" name="SUCCESS-RESPONSE-URL" value=&quot;http://www.URL_of_thank_you_htm_page">

Bodemi

Link to comment
Share on other sites

thanx for the help bodemi :) - - we have it sorted now though, and Tony is hosting it for me.. i just trying to make collapsable/expandable menus now!???

ive found that i could make it with my NetObjects Fusion demo (because i seen another site with them, made by that) - at least to see what code it writes to make something like that

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy