Jump to content

ajb

Members
  • Posts

    6
  • Joined

  • Last visited

Reputation

10 Good

About ajb

Personal Information

  • Occupation
    Software Engineer
  • Interests
    ASP.NET, C#, CodeSmith, Doctrine, Dojo Toolkit, Linux, MySQL, PHP, SQL Server, Zend Framework, etc.
  • Location
    East Midlands

Employer (optional)

  • Company Represented
    Local Authority
  1. To determine what Google has crawled, use the 'site:' prefix in the search bar followed by your domain name. Try: site:.sch.uk To get results for all .sch.uk domains, or: site:nottinghamshire.sch.uk To get all results for Nottinghamshire school Web sites. And, of course: site:eatonvalley.sandwell.sch.uk To bring back any results for your own school. Ta, Andy.
  2. I'm slightly perplexed actually. I first tried adding a name attribute of "submit" to the I then tried to add a hidden input field, again with a name attribute of "submit". Again, no joy. Finally, I altered the name attribute to "_submit" (or something other than "submit") and all works well now. You must, of course, also make amendments to your PHP file so that the isset() function checks for the existence of the $_POST['_submit'] variable, not $_POST['submit']. if (isset($_POST['_submit'])) { // ... } else { // ... } Let me know how you fair.
  3. When using JavaScript and a button element rather than an input element of type 'submit', the action is slightly different. There is no $_POST['submit'] variable created. Have you used name="..." attributes on your form input elements so that you can reference them $_POST['to'], $_POST['subject'], $_POST['body'], etc.? Something like... </pre><form action="sendmail.php" method="post"> To Subject Body </for Don't forget to validate the data held in these fields before using them in the call to mail(). Ta, Andy.
  4. Hi Mike, What was the original purpose of the call to isset()? Also, I very much doubt that the variable $_POST['submit'] is actually set to anything any longer. To quickly check which values are held in $_POST you can insert the following (to debug) preferably towards the very top of your PHP script: echo print_r($_POST, TRUE); exit(1); If you remove the if statement and simply call mail() it should work correctly. Ta, Andy. P.S. How do you specify the to, subject, and body variables both in your HTML form and their assignment within your PHP script? You don't show them being assigned.
  5. I'm all with Hightower's suggestion. Acquiring formal training in software engineering or similar is definitely a good idea. As roles within the IT industry continue diversify, I'd also urge you to consider whether you would like to work as a Web designer or Web developer. To be a Web designer, it doesn't hurt to have knowledge of Web development and vice versa; and depending on the size of the organisations you might end up working for, you could find yourself performing both roles at the same time. To clarify: a Web designer typically 'designs' a Web site or application, with an eye firmly on the look and feel, user experience, workflow, etc. Skills required include CSS, HTML, XHTML, JavaScript, Web site design tools like Dreamweaver, templating libraries like Smarty, and anything else typically associated with presentation (like Flash). A Web developer will be responsible for the innards of a Web site or application and is most likely to have knowledge of ASP.NET, C#, PHP, JSON, SQL, XML Web services, etc. Andy.
  6. ajb

    VBS Check character

    Forgive me for appearing a little pernickety but... The IsNumeric function will return True when FirstCharacter is equal to "0" won't it? Maybe this isn't quite the behaviour you wanted. Cheers, Andy.
×
×
  • Create New...