Jump to content

T2theC

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

T2theC's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. ha ha, Thanks for the fast reply. I have just tried that and it worked... But not as I need it to. I probably didn't explain myself very clearly... So here is take two... There will be several different magazines in MainInfo.Title MainInfo.Description So there might be one called: SportsMag and another called ShoppingMag. Each with a latest issue. I want to display: SportsMag <<<<-These two coming from MainInfo Table SportsMag.Description SportsMag.LatestIssue.IssueNumber <<<<-These two coming from LatestIssue Table SportsMag.LatestIssue.WhatsInIt ------------------------------------- ShoppingMag ShoppingMag.Description ShoppingMag.LatestIssue.IssueNumber ShoppingMag.LatestIssue.WhatsInIt I have a date column in both tables so that the datestamp is put in. So I need either the SQL or PHP to pull ONLY one entry of each: MainInfo.Title MainInfo.Description and then the latest issue info for that title. I hope this has help. And thanks again for pitching in!
  2. Hi guys, I am a novice coder... So be gentle! I am using DW to pull information from my DB about magazines. I have on table that has all the general info about the mag in it, and another table with all the latest issue info in it. I have created a 'Master-Detail' page that pulls ALL the information. What I want is to pull just one magazine title and the latest issue information. So I will have a repeating region like this: MainInfo.Title MainInfo.Description LatestIssue.IssueNumber LatestIssue.WhatsInIt At the moment I am getting ALL the records showing for that magazine title. Help for a newbie? (Please feel free to talk to me like an idiot!) Thanks in advance
  3. Wow, thanks WolfRage for the quick reply. Just to clarify how I want this to work (I'm don't sure I made it clear at the start)... Step 1 = I email my clients with a code Step 2 = They visit my site and enter their code into a form Step 3 = The form posts to the above script Step 4 = The script takes them to a page relating to that code. If this is what you though I said then thats great. Sorry for the newbie-ness. I just want to make sure it will run smoothly. And thanks again for your help, it is really appreciated.
  4. Hi guys, I am sending out emails to my database of clients. A client is going to be issued with one of five codes. When they visit my site and enter their code I want them to be taken to a page relating to that code. I am a n00bie so please be gentle... Is this what I need?? $code = strip_tags ($_REQUEST['code']); if ($code == 'CODE_1') header( "Location: http://www.MYSITE.com/code1" ); elseif ($code == 'CODE_2') header( "Location: http://www.MYSITE.com/code2" ); elseif ($code == 'CODE_3') header( "Location: http://www.MYSITE.com/code3" ); Will this work ok? Is there a better way to do that is SIMPLE and easy for a non coder to understand? Thanks for taking the time out to read this.
  5. Hi Guys, Thanks for taking the time out to read this. I want to make a form that inputs into my database. It is an invitation to an event. I am sending out emails to 5 databases of clients. Each database of clients will have a CODE to enter into my form. Each database of clients is allowed to bring either 1,3,5 guests. What I need: I want the user to enter their code in the form and then when the code is correct, the remaining form shooshes down with entry details for either 1,3,5 guests names. I hope this all make sense. Please be gentle with me as I have very limited knowledge of JS. In fact, if you guys know any tutorials for this or somewhere I can copy and paste, that would be best. I've seen it on other sites, just never known how to go about it. Many Thank
  6. OK Thanks WildTeen88 Here it is: <?php $firstname = strip_tags ($_REQUEST['firstname']); $surname = strip_tags ($_REQUEST['surname']); $position = strip_tags ($_REQUEST['position']); $compname = strip_tags ($_REQUEST['compname']); $email = strip_tags ($_REQUEST['email']); $phone = strip_tags ($_REQUEST['phone']); $address = strip_tags ($_REQUEST['address']); $postcode = strip_tags ($_REQUEST['postcode']); $comptype = strip_tags ($_REQUEST['comptype']); $area = strip_tags ($_REQUEST['area']); $other = strip_tags ($_REQUEST['other']); $employees = strip_tags ($_REQUEST['employees']); $established = strip_tags ($_REQUEST['established']); $turnover = strip_tags ($_REQUEST['turnover']); $profit = strip_tags ($_REQUEST['profit']); $sector = strip_tags ($_REQUEST['sector']); $overview = strip_tags ($_REQUEST['overview']); $challenge = strip_tags ($_REQUEST['challenge']); $overcome = strip_tags ($_REQUEST['overcome']); $achieved = strip_tags ($_REQUEST['achieved']); $mentor = strip_tags ($_REQUEST['mentor']); $question = strip_tags ($_REQUEST['question']); $terms = strip_tags ($_REQUEST['terms']); $contact = strip_tags ($_REQUEST['contact']); $message =' <html> <head> <title>MY TITLE</title> </head> <body> <table> <tr> <td width="181" valign="top" bgcolor="#A2C7DA"><p><strong>First Name:</strong></p></td> <td width="306" valign="top" bgcolor="#A2C7DA"><p><?php echo $firstname ?></td> </tr> <tr> <td valign="top" bgcolor="#A2C7DA"><p><strong>Surname:</strong></p></td> <td valign="top" bgcolor="#A2C7DA"><p><?php echo $surname ?></p></td> </tr> <tr> <td valign="top"></td> <td valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#A2C7DA"><p><strong>Position:</strong></p></td> <td valign="top" bgcolor="#A2C7DA"><p><?php echo $position ?> </p></td> </tr> <tr> <td valign="top" bgcolor="#A2C7DA"><p><strong>Company Name:</strong></p></td> <td valign="top" bgcolor="#A2C7DA"><p><?php echo $compname ?></p></td> </tr> <tr> <td valign="top"></td> <td valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#A2C7DA"><p><strong>E-mail:</strong></p></td> <td valign="top" bgcolor="#A2C7DA"><p><?php echo $email ?></p></td> </tr> <tr> <td valign="top" bgcolor="#A2C7DA"><p><strong>Telephone:</strong></p></td> <td valign="top" bgcolor="#A2C7DA"><p><?php echo $phone ?></p></td> </tr> <tr> <td valign="top" bgcolor="#A2C7DA"><p><strong>Address:</strong></p></td> <td rowspan="3" valign="top" bgcolor="#A2C7DA"><p><?php echo $address ?></p></td> </tr> <tr valign="top"> <td bgcolor="#A2C7DA"><p> </p></td> </tr> <tr valign="top"> <td bgcolor="#A2C7DA"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#A2C7DA"><p><strong>Post Code:</strong></p></td> <td valign="top" bgcolor="#A2C7DA"><p><?php echo $postcode ?></p></td> </tr> <tr> <td valign="top"></td> <td valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#A2C7DA"><p><strong>Legal Structure:</strong></p></td> <td valign="top" bgcolor="#A2C7DA"><?php echo $comptype ?></td> </tr> <tr> <td valign="top"></td> <td valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#A2C7DA"><p><strong>What sector<br /> are you in?</strong></p></td> <td valign="top" bgcolor="#A2C7DA"><p><?php echo $area $other ?></p></td> </tr> <tr> <td valign="top"></td> <td valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#A2C7DA"><p><strong>No. of employees:</strong></p></td> <td valign="top" bgcolor="#A2C7DA"><?php echo $employees ?></td> </tr> <tr> <td valign="top"></td> <td valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#A2C7DA"><p><strong>When was the company established?</strong></p></td> <td valign="top" bgcolor="#A2C7DA"><p><?php echo $established ?></p></td> </tr> <tr> <td valign="top"></td> <td valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#A2C7DA"><p><strong>Turnover:</strong></p></td> <td valign="top" bgcolor="#A2C7DA"><p><?php echo $turnover ?></p></td> </tr> <tr> <td valign="top"></td> <td valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#A2C7DA"><p><strong>Profit last year:</strong></p></td> <td valign="top" bgcolor="#A2C7DA"><p><?php echo $profit ?></p></td> </tr> <tr> <td valign="top"></td> <td valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#A2C7DA"><p><strong>Sector:</strong></p></td> <td valign="top" bgcolor="#A2C7DA"><p><?php echo $sector ?></p></td> </tr> <tr> <td valign="top"></td> <td valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#A2C7DA"><p><strong>Provide some background information and an overview of your organisation: </strong><br /> (max 200 words)</p></td> <td valign="top" bgcolor="#A2C7DA"><p><?php echo $overview ?></p></td> </tr> <tr> <td valign="top"></td> <td valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#A2C7DA"><p><strong>Give details of the challenge or opportunity that you faced?</strong><br /> (max 200 words)</p></td> <td valign="top" bgcolor="#A2C7DA"><p><?php echo $challenge ?></p></td> </tr> <tr> <td valign="top"></td> <td valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#A2C7DA"><p><strong>Tell us what you have done to overcome the challenge or maximize the opportunity:</strong><br /> (max 500 words)</p></td> <td valign="top" bgcolor="#A2C7DA"><p><?php echo $overcome ?></p></td> </tr> <tr> <td valign="top"></td> <td valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#A2C7DA"><p><strong>Provide details of<br /> what has been achieved as a result:</strong><br /> (max 200 words)</p></td> <td valign="top" bgcolor="#A2C7DA"><p><?php echo $achieved ?></p></td> </tr> <tr> <td valign="top"></td> <td valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#A2C7DA"><p><strong>Tell us what you want a business mentor?</strong><br /> (max 200 words)</p></td> <td valign="top" bgcolor="#A2C7DA"><p><?php echo $mentor ?></p></td> </tr> <tr> <td valign="top"></td> <td valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#A2C7DA"><p><strong>What question would you as a business mentor?<br /> </strong>(max 50 words)</p></td> <td valign="top" bgcolor="#A2C7DA"><p><?php echo $question ?></p></td> </tr> <tr> <td valign="middle"> </td> <td> </td> </tr> <tr> <td colspan="2" valign="middle" bgcolor="#A2C7DA"><p><strong>I confirm I have read and accept the terms and conditions: </strong><?php echo $terms ?></p></td> </tr> <tr> <td colspan="2" valign="middle" bgcolor="#A2C7DA"><p>I am happy for Business Link to contact me: <?php echo $contact ?></p></td> </tr> </table> </body> </html> '; // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Additional headers $headers .= 'From: ME <toby@MYADDRESS.net>' . "\r\n"; // Mail it mail("info@MYADDRESS.co.uk", "Competiton Entry", $message, $headers); ?>
  7. Right then, This is still not working :-( The table comes across fine so the HTML side is working ok. But the form content isn't there. There is no code in its place. Its just blank. I have put in: <td><P><?php echo $firstname ?> </p><td>
  8. Ahhh, of course! What a numb nut. Lesson one of my training video!!!! What a basic mistake. I shall try and report back. Thanks
  9. Hi guys, I have created a form that posts to an email address. Simple enough! There is quite a bit of content in this form and at the moment it doesn't display very nicely for the client. I am pulling the info from the form like this: $firstname = strip_tags ($_REQUEST['firstname']); It works finr in a normal text email. I have tried using the var in the email like this: <td> $firstname </td> and also: <td> <?php $firstname ?> </td> Neither pull the info across. I also use an online shopping cart system that uses: %%GLOBAL[yadda yadda] [firstname] From my limited understanding, I take it this is being pulled from a global ini file????? Basically, is there anyway of 'easily' sorting this out so the data pulled form the form displays nicely in a table??? Thank in advance for all your help.
  10. You legend!!!! Thank you Brian. That has worked! Thank god! Thanks SO much. It has resorted to default and put 'CGI-Mailer' as the from section. Thank you, thank you, thank you
  11. Thanks Brian, I gave just tried: mail( "info@MYADDRESS.com", "Enquiry from Website", $message, "From: $email", ' ' ); Using both ' ' and " " - Neither has worked. As you may have guessed I am a noobie! I know my server is set up ok as I have used many forms like this already. I'm stuck!!
  12. Hi Aaron, Thanks for the speedy reply. I am really grateful for your help Your right - I'm not getting mail. I have just tried the simpler script and that works fine. I have double and ripple checked everything. I'm sure it is something very simple. Why is it this always happens on deadline! Oh well. Two things that I am doing differently are: • Using SPRY for the first time to validate the form. • Using JavaScript to count the number of words in the 'Questions' part of the form. Here is the form I am posting from: <form id="EntryForm" name="EntryForm" method="post" action="YIBC_Entry.php"> <table width="487" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="181" valign="top" bgcolor="#B8EDFF"><p><strong>First Name:</strong></p></td> <td colspan="2" valign="top" bgcolor="#B8EDFF"><p><span id="firstname1"> <label> <input name="firstname" type="text" id="firstname" size="40" /> <br /> </label> <span class="textfieldRequiredMsg"><br /> Please enter your first name</span><span class="textfieldMinCharsMsg">Please enter your first name.</span></span></p></td> </tr> <tr> <td valign="top" bgcolor="#B8EDFF"><p><strong>Surname:</strong></p></td> <td colspan="2" valign="top" bgcolor="#B8EDFF"><p><span id="surname1"> <label> <input name="surname" type="text" id="surname" size="40" /> </label> <br /> <span class="textfieldRequiredMsg"> Please enter your surname.<br /> </span><span class="textfieldMinCharsMsg">Please enter your surname.</span></span></p></td> </tr> <tr> <td valign="top"></td> <td colspan="2" valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#B8EDFF"><p><strong>Position:</strong></p></td> <td colspan="2" valign="top" bgcolor="#B8EDFF"><p><span id="position1"> <label> <input name="position" type="text" id="position" size="40" /> </label> <span class="textfieldRequiredMsg">Please enter your job title.</span><span class="textfieldMinCharsMsg"></span></span><br /> </p></td> </tr> <tr> <td valign="top" bgcolor="#B8EDFF"><p><strong>Company Name:</strong></p></td> <td colspan="2" valign="top" bgcolor="#B8EDFF"><p><span id="compname1"> <label> <input name="compname" type="text" id="compname" size="40" /> </label> <span class="textfieldRequiredMsg"><br /> Please enter your companies name<br /> </span><span class="textfieldMinCharsMsg"><br /> Please enter your companies full name.</span></span></p></td> </tr> <tr> <td valign="top"></td> <td colspan="2" valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#C4ECFF"><p><strong>E-mail:</strong></p></td> <td colspan="2" valign="top" bgcolor="#C4ECFF"><p><span id="email1"> <label> <input name="email" type="text" id="email" size="40" /> </label> <span class="textfieldRequiredMsg"><br /> Please enter your email address.</span><span class="textfieldInvalidFormatMsg"><br /> Please enter your email address.</span></span></p></td> </tr> <tr> <td valign="top" bgcolor="#C4ECFF"><p><strong>Telephone:</strong></p></td> <td colspan="2" valign="top" bgcolor="#C4ECFF"><p><span id="phone1"> <label> <input name="phone" type="text" id="phone" size="40" /> </label> <span class="textfieldRequiredMsg"><br /> Please enter your phone number.</span><span class="textfieldMinCharsMsg"></span></span></p></td> </tr> <tr> <td valign="top" bgcolor="#C4ECFF"><p><strong>Address:</strong></p></td> <td colspan="2" rowspan="3" valign="top" bgcolor="#C4ECFF"><p><span id="address1"> <label> <textarea name="address" id="address" cols="35" rows="5"></textarea> <br /> </label> <span class="textareaRequiredMsg">Please enter your address.</span><span class="textareaMaxCharsMsg">Exceeded maximum number of characters.</span><span class="textareaMinCharsMsg">Minimum number of characters not met.</span></span></p></td> </tr> <tr valign="top"> <td bgcolor="#C4ECFF"><p> </p></td> </tr> <tr valign="top"> <td bgcolor="#C4ECFF"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#C4ECFF"><p><strong>Post Code:</strong></p></td> <td colspan="2" valign="top" bgcolor="#C4ECFF"><p><span id="postcode1"> <label> <input name="postcode" type="text" id="postcode" size="40" /> </label> <span class="textfieldRequiredMsg">Please enter your postcode.</span></span></p></td> </tr> <tr> <td valign="top"></td> <td colspan="2" valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#B8EDFF"><p><strong>Legal Structure:</strong></p></td> <td colspan="2" valign="top" bgcolor="#B8EDFF"><p> <label> <select name="comptype" id="comptype"> <option selected="selected">----Please Select----</option> <option value="Community interest company">Community interest company</option> <option value="Cooperative">Cooperative</option> <option value="Partnership">Partnership</option> <option value="Limited liability partnership">Limited liability partnership</option> <option value="Limited partnership">Limited partnership</option> <option value="Ltd.">Ltd.</option> <option value="PLC">PLC</option> <option value="Sole trader">Sole trader</option> <option value="Unlimited company ">Unlimited company </option> </select> </label> </p></td> </tr> <tr> <td valign="top"></td> <td colspan="2" valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#B8EDFF"><p><strong>What sector<br /> are you in?</strong></p></td> <td colspan="2" valign="top" bgcolor="#B8EDFF"><p><span id="spryselect1"><span class="selectRequiredMsg">Please select an item.</span></span> <label> <select name="area" id="area"> <option selected="selected">----Please Select----</option> <option value="Private Sector">Private Sector</option> <option value="Social Enterprise">Social Enterprise</option> <option value="Charity">Charity</option> <option value="Other">Other - Please give details</option> </select> <br /> <em> <input name="other" type="text" id="other" value="If other, please specify." size="40" /> </em> </label> </p></td> </tr> <tr> <td valign="top"></td> <td colspan="2" valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#B8EDFF"><p><strong>No. of employees:</strong></p></td> <td colspan="2" valign="top" bgcolor="#B8EDFF"><p> <label> <select name="employees" id="employees"> <option selected="selected">----Please Select----</option> <option value="1-5">1-5</option> <option value="6-10">6-10</option> <option value="11-20">11-20</option> <option value="21-50">21-50</option> <option value="51-250">51-250</option> <option value="250+">250+</option> </select> </label> </p></td> </tr> <tr> <td valign="top"></td> <td colspan="2" valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#C4ECFF"><p><strong>When was the company established?</strong></p></td> <td colspan="2" valign="top" bgcolor="#C4ECFF"><p><span id="established1"> <label> <input name="established" type="text" id="established" size="40" /> </label> <span class="textfieldRequiredMsg"><br /> Please tell us when your business was established.</span><span class="textfieldMinCharsMsg"><br /> Please tell us when your business was established.</span></span></p></td> </tr> <tr> <td valign="top"></td> <td colspan="2" valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#CDEBFF"><p><strong>Turnover:</strong></p></td> <td colspan="2" valign="top" bgcolor="#CDEBFF"><p><span id="tunover1"> <label> <input name="turnover" type="text" id="turnover" size="40" /> </label> <span class="textfieldRequiredMsg">Please tell us last years turnover.</span><span class="textfieldMinCharsMsg">Please tell us last years turnover.</span></span></p></td> </tr> <tr> <td valign="top"></td> <td colspan="2" valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#B8EDFF"><p><strong>Profit last year:</strong></p></td> <td colspan="2" valign="top" bgcolor="#B8EDFF"><p> <label> <select name="profit" id="profit"> <option selected="selected">----Please Select----</option> <option value="£0k-50k">£0k-50k</option> <option value="£50k-£200k">£50k-£200k</option> <option value="£200k-£500k">£200k-£500k</option> <option value="£500k-£1m">£500k-£1m</option> <option value="£1m-£2m">£1m-£2m</option> <option value="£2m-£3m">£2m-£3m</option> <option value="£3m-£4m">£3m-£4m</option> <option value="£5m+">£5m+</option> </select> </label> </p></td> </tr> <tr> <td valign="top"></td> <td colspan="2" valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#B8EDFF"><p><strong>Sector:</strong></p></td> <td colspan="2" valign="top" bgcolor="#B8EDFF"><p><span id="sector1"> <label> <input name="sector" type="text" id="sector" size="40" /> </label> <span class="textfieldRequiredMsg">Please tell us what sector you are in.</span><span class="textfieldMinCharsMsg"><br /> Please tell us what sector you are in.</span></span></p></td> </tr> <tr> <td valign="top"></td> <td colspan="2" valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#B8EDFF"><p><strong>Provide some background information and an overview of your organisation: </strong><br /> (max 200 words)</p></td> <td colspan="2" valign="top" bgcolor="#B8EDFF"><p> <label> <textarea name="overview" id="overview" cols="40" rows="8"></textarea> <input type=button value="Count Words" OnClick ="CountWords(this.form.overview, true, true);"> </label> </p></td> </tr> <tr> <td valign="top"></td> <td colspan="2" valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#B8EDFF"><p><strong>Give details of the challenge or opportunity that you faced?</strong><br /> (max 200 words)</p></td> <td colspan="2" valign="top" bgcolor="#B8EDFF"><p> <label> <textarea name="challenge" id="challenge" cols="40" rows="8"></textarea> <br> <input type=button value="Count Words" OnClick ="CountWords(this.form.challenge, true, true);"> </label> </p></td> </tr> <tr> <td valign="top"></td> <td colspan="2" valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#B8EDFF"><p><strong>Tell us what you have done to overcome the challenge or maximize the opportunity:</strong><br /> (max 500 words)</p></td> <td colspan="2" valign="top" bgcolor="#B8EDFF"><p> <label> <textarea name="overcome" id="overcome" cols="40" rows="8"></textarea> <input type=button value="Count Words" OnClick ="CountWords(this.form.overcome, true, true);"> </label> </p></td> </tr> <tr> <td valign="top"></td> <td colspan="2" valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#B8EDFF"><p><strong>Provide details of<br /> what has been achieved as a result:</strong><br /> (max 200 words)</p></td> <td colspan="2" valign="top" bgcolor="#B8EDFF"><p> <label> <textarea name="achieved" id="achieved" cols="40" rows="8"></textarea> <input type=button value="Count Words" OnClick ="CountWords(this.form.achieved, true, true);"> </label> </p></td> </tr> <tr> <td valign="top"></td> <td colspan="2" valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#B8EDFF"><p><strong>Tell us what you want a business mentor?</strong><br /> (max 200 words)</p></td> <td colspan="2" valign="top" bgcolor="#B8EDFF"><p><label> <textarea name="mentor" id="mentor" cols="40" rows="8"></textarea> <input type=button value="Count Words" OnClick ="CountWords(this.form.mentor, true, true);"> </label> </p></td> </tr> <tr> <td valign="top"></td> <td colspan="2" valign="top"><p> </p></td> </tr> <tr> <td valign="top" bgcolor="#B8EDFF"><p><strong>What question would you as a business mentor?<br /> </strong>(max 50 words)</p></td> <td colspan="2" valign="top" bgcolor="#B8EDFF"><p> <label> <textarea name="question" id="question" cols="40" rows="8"></textarea> <input type=button value="Count Words" OnClick ="CountWords(this.form.question, true, true);"> </label> </p></td> </tr> <tr> <td valign="middle"> </td> <td colspan="2"> </td> </tr> <tr> <td colspan="3" valign="middle" bgcolor="#B8EDFF"><p><strong>I confirm I have read and accept the terms and conditions</strong> <span id="terms1"> <label> <input name="terms" type="checkbox" id="terms" value="Yes" /> </label> <span class="checkboxRequiredMsg"><br /> You must agree to the terms and conditions.</span></span><br /> </p></td> </tr> <tr> <td colspan="3" valign="middle" bgcolor="#B8EDFF"><p>I am happy for Business Link to contact me : <label> <input name="contact" type="radio" id="Contact_0" value="Yes" checked="checked" /> Yes</label> <label> <input type="radio" name="Contact" value="No" id="Contact_1" /> No</label> </p></td> </tr> <tr> <td valign="middle"><p> </p></td> <td width="221"> </td> <td width="85"><input type="submit" name="Submit" id="Submit" value="Submit" /></td> </tr> </table> <!-- end #mainContent --> </form>
  13. Hi guys, thanks for taking a look and helping me out. I am using a from to email using this script. I have used a similar setup many times before for a variety of websites. For some reason I cannot get it to work. I haven't changed anything except the VARs and email address. I hope you can help. Thanks. <?php $firstname = strip_tags ($_REQUEST['firstname']); $surname = strip_tags ($_REQUEST['surname']); $position = strip_tags ($_REQUEST['position']); $compname = strip_tags ($_REQUEST['compname']); $email = strip_tags ($_REQUEST['email']); $phone = strip_tags ($_REQUEST['phone']); $address = strip_tags ($_REQUEST['address']); $postcode = strip_tags ($_REQUEST['postcode']); $comptype = strip_tags ($_REQUEST['comptype']); $area = strip_tags ($_REQUEST['area']); $other = strip_tags ($_REQUEST['other']); $employees = strip_tags ($_REQUEST['employees']); $established = strip_tags ($_REQUEST['established']); $turnover = strip_tags ($_REQUEST['turnover']); $profit = strip_tags ($_REQUEST['profit']); $sector = strip_tags ($_REQUEST['sector']); $overview = strip_tags ($_REQUEST['overview']); $challenge = strip_tags ($_REQUEST['challenge']); $overcome = strip_tags ($_REQUEST['overcome']); $achieved = strip_tags ($_REQUEST['achieved']); $mentor = strip_tags ($_REQUEST['mentor']); $question = strip_tags ($_REQUEST['question']); $terms = strip_tags ($_REQUEST['terms']); $contact = strip_tags ($_REQUEST['contact']); $message =" NAME: $firstname $surname POSITION: $position COMPANY: $compname EMAIL: $email PHONE: $phone ADDRESS: $address POSTCODE: $postcode $comptype $area $other $employees $established $turnover $profit $sector $overview $challenge $overcome $achieved $mentor $question $terms $contact"; mail( "info@MYADDRESS.com", "Enquiry from Website", $message, "From: $email" ); header( "Location: http://www.MYADDRESS/thankyou.php" ) ?>
×
×
  • 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.