+ Post New Thread
Page 3 of 3 FirstFirst 123
Results 31 to 40 of 40
Coding Thread, Creating a form in Coding and Web Development; Originally Posted by lholland421 Hi Yes i have put the Connector there, Its enabled and has the correct ip address ...
  1. #31

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,499
    Thank Post
    1,185
    Thanked 745 Times in 647 Posts
    Rep Power
    228
    Quote Originally Posted by lholland421 View Post
    Hi Yes i have put the Connector there, Its enabled and has the correct ip address of the ubuntu server on port 25, so im at a real loss. Is there any configuration needed in ubuntu so it knows where to send the mail?
    Ah, yes - your Ubuntu machine needs to have a proper sendmail setup, the PHP library uses sendmail to send emails. That Python code I posted above uses a library that sends SMTP mail directly.

  2. #32

    Join Date
    Jan 2013
    Posts
    67
    Thank Post
    1
    Thanked 5 Times in 5 Posts
    Rep Power
    3
    I'd use google forms, which puts results into a spreadsheet which could be shared and then you can do manipulation on those sheets with scripts autocrat, doctopus, formmule and flubaroo todo various personalised document creation and sends, personalised copies or make grading depending on what the form use is.

    autocrat is like an updated mailmerge to someones email, youpd

    There's some other great vids on youpd.org for the other scripts and probably more I don't know about.

    It also has benefit of not having the hassle of creating / maintaining your own web server and web app.
    Last edited by mikeyd101; 25th February 2014 at 09:02 PM.

  3. #33

    Join Date
    Sep 2013
    Location
    Worcestershire
    Posts
    40
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Can you create your own template for Google forms ?

  4. #34
    mjs_mjs's Avatar
    Join Date
    Jan 2009
    Location
    bexleyheath, london
    Posts
    1,004
    Thank Post
    37
    Thanked 108 Times in 93 Posts
    Rep Power
    36
    Quote Originally Posted by lholland421 View Post
    Is there any configuration needed in ubuntu so it knows where to send the mail?
    Yes - you need to tell it where to send the mail in the php script if you using php,

    Try the code in PHP: mail - Manual example 1 - with your own e-mail to make sure that it's not an issue within the php page.

  5. #35

    Join Date
    Jan 2013
    Posts
    67
    Thank Post
    1
    Thanked 5 Times in 5 Posts
    Rep Power
    3
    What do you mean by template? you can choose from a number of different input types text, number, multiple choice, slider. Don't think you can change the layout of the forms

  6. #36

    Join Date
    Sep 2013
    Location
    Worcestershire
    Posts
    40
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Thanks for all of your help, I managed to get it working by installing and configuring send mail, i know have the form mailing to an email address but it comes through as plain text. I have tried using the sample code here Sending Nice HTML Email with PHP | CSS-Tricks which works but the moment i try to add an image into the table or copy the form design out of dreamweaver the insert.php seems to fail. does anyone have any guide on how to get the email to look the same as the form ?

    Thanks

  7. #37

    Join Date
    Sep 2013
    Location
    Worcestershire
    Posts
    40
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I am Running a insert.php file which processes the form and emails it and submits it to a sql database. I am trying to insert a html table into the script which i have working so far but when i try to use the align="center" the script stops working. any ideas?

  8. #38

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,659
    Thank Post
    324
    Thanked 506 Times in 474 Posts
    Rep Power
    177
    If you're using " within the script you'll need to escape them, else it thinks you're ending it. Think it's \ for php, so align=\"center\" etc.

    Steve

  9. #39
    mjs_mjs's Avatar
    Join Date
    Jan 2009
    Location
    bexleyheath, london
    Posts
    1,004
    Thank Post
    37
    Thanked 108 Times in 93 Posts
    Rep Power
    36
    or if you're using echo it can be either
    echo "colour = 'blue' ";
    or
    echo 'colour = "blue" ';
    for example.

  10. #40

    Join Date
    Sep 2013
    Location
    Worcestershire
    Posts
    40
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Hi, I now have the form and the email working as i want it. I just have one issue, When a user enters any special character into the text box e.g. <> ' the script fails giving me a check syntax error. I know i need to put validation onto the form. I have seen this piece of code

    <form id="form1" name="form1" method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>

    How would i go about getting the form to validate and then send the email which is sent by using my Insert.php Script.

    Thanks All

SHARE:
+ Post New Thread
Page 3 of 3 FirstFirst 123

Similar Threads

  1. Creating online forms
    By MrWu in forum Internet Related/Filtering/Firewall
    Replies: 11
    Last Post: 4th February 2014, 11:21 AM
  2. Creating application forms
    By SamanthaJane in forum Office Software
    Replies: 5
    Last Post: 31st January 2013, 09:54 AM
  3. Creating a form, web novice, help please
    By mrbios in forum Web Development
    Replies: 27
    Last Post: 1st July 2010, 09:15 AM
  4. Form created with Publisher
    By laserblazer in forum How do you do....it?
    Replies: 5
    Last Post: 28th June 2009, 04:36 PM
  5. Creating a form in frontpage2003
    By park_bench in forum Web Development
    Replies: 2
    Last Post: 24th January 2007, 09:18 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •