Jump to content

hanlonj

Members
  • Posts

    38
  • Joined

  • Last visited

    Never

Everything posted by hanlonj

  1. I know this isn't exactly what u want to hear but I would suggest to you to learn CSS and ditch iFrames as they are not best practice and can be a bit of a nightmare to deal with. you can then use divs to display whatever information you need to be displayed as if they were iFrames. Does this help? John
  2. OK thanks for that. But can I ask another question if I may then on this topic? I am developing a website called "AllThingsIrish" and has a forum,registration, log in  etc. I am trying to hone my php coding skills by hand coding the lot including the forum. My question is this, is it too difficult for a lone coder to write a good forum seeing as php freaks themselves use purchased software? I have to say, it has made me doubt myself. John
  3. What does SMF mean in relation to this website? John
  4. Guys, I know I shouldn't be posting this here but I have searched and searched for this answer and cannot seem to find here. Is there anyway I can view all my posts since I joined php freaks? John
  5. Hi, I want to check that email addresses entered into my form have some letters or numbers before the "@"and then comes a "." and then some letters e.g. ".net" or ".com" etc. I think I have to use the "ereg" function? Can anyone supply a generic example? Thanks John
  6. Thanks for that. And if I just want to check that at least one checkbox is ticked?What's the basic "if" statement required? John
  7. Hi, I have a form as follows: [code] <?php <form id='form1' name='form' method='post' action='checkout.php'>   <table width='100%' border='0' cellspacing='2' cellpadding='2'>     <tr>       <td width='200'>Title:</td>       <td><input name='title' type='text' id='title' /></td>     </tr>     <tr>       <td>Fruits:</td>       <td><input type='checkbox' name='fruit[]' value='001' />         Apple<br />         <input type='checkbox' name='fruit[ ]' value='002' />         Pear<br />         <input type='checkbox' name='fruit[ ]' value='003' />         Banana<br />         <input type='checkbox' name='fruit[]' value='004' />         Grapefruit<br />         <input type='checkbox' name='fruit[]' value='005' />         Pineapple<br />         <input type='checkbox' name='fruit[]' value='006' />         Mango</td>     </tr>     <tr>       <td>Description:</td>       <td><textarea name='description' cols='50' rows='5' id='description'></textarea></td>     </tr>     <tr>       <td>Postal code: </td>       <td><input name='postalcode' type='text' id='postalcode' size='2' maxlength='2'>         -         <input name='postalcode2' type='text' id='postalcode2' size='3' maxlength='3'></td>     </tr>     <tr>       <td>&nbsp;</td>       <td><input type='submit' name='Submit' value='Submit' /></td>     </tr>   </table> </form> ?> [/code] I want to be able to check which boxes are ticked? Can someone just give me the basic syntax of how to check the first two boxes? Also, to use an array of checkboxes as above, does teh form have to be generated by a php script or can I use the same in a html form? John
  8. I am writing a registration script. If there are any blank fields my script will return to the form with the specific empty fields listed above same form. This is ok and it's what I want. Here is my small problem and I know it's an easy one but can't get the logic of it into my head (I have searched this forum for it also but to no avail). I want the fields that were filled in by the user to be displayed again with the previous entries in them. I realise I have to somehow echo the variables within these fields but not sure how to do it. My form is written in the html part of the page and not generated through php. I hope this is clear? John
  9. [quote author=obsidian link=topic=108839.msg438297#msg438297 date=1158784082] that means, you are probably running your validation without ever seeing whether or not the form has been submitted. let's say you have your submit button simply named "submit", you'll need to wrap your entire validation and processing within something like this: [code] <?php if (isset($_POST['submit'])) {   // process your form here. } ?> [/code] [/quote] Excellent, worked no problem. Thank  you very much. John
  10. Hi, I am validating a form on a page using the [code]$_SERVER[PHP_SELF}[/code]superglobal. I check for empty fields and display an error beside the field that is empty so the user will know what to correct (as per usual on a website).My problem is that when the page loads initially, the form is as you would expect empty. so the errors appear upon first loading of the page. I realise this is easy to fix but the solution is escaping me at the moment. Can anyone help? John
  11. Hi, I want to show this kinda message "You last logged in '3 days 2 hours and 5 seconds ago". I have a date and time saved in database, is there a function to calculate the difference between the times?The field in the db is "datetime" but does it have to be "timestamp"? John
  12. [quote author=steelmanronald06 link=topic=107927.msg433652#msg433652 date=1158171443] [url=http://lampgeekz.netgeekz.net/forum/index.php/topic,38.0.html]http://lampgeekz.netgeekz.net/forum/index.php/topic,38.0.html[/url] Full class/walk-through on sending email to 1 user, more than 1 user, and validating the email address before sending it. [/quote] Thanks a million. John
  13. Hi, I realise this a a typical question but cannot seem to find the answer on this forum. ??? I have a membership system and I want to send an activation email to a user when they register their email address and other various details with my site.Can someone please point me in the right direction? Jhanlon
×
×
  • 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.