Jump to content

BinaryG

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

BinaryG's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. yea true missed that one rhodesa
  2. try this if ($age <16 && $age >90) $errorage = true; you need to compare the var in both cases
  3. thats better it works perfectly fine in both firefox and ie8 for me are you sure you have flash installed on ie
  4. use paypal ipn for payments mate i have many zencarts set up with this and they work perfectly make sure you turn on ipn in your paypal profile and supply a callback url
  5. well i cant get that script to work in any borwser with ether remote or local swf files i just get a full page with movie not loaded but a quick tip put your code in code tags it the # button on the create post screen. i must admint i have not done much work with php headers but could you post a bit more info on the script maybe one with a link to a swf file that works for you.
  6. you could use a direct link ie http://www.yoursite.co/index.php that way it will always point to the correct place
  7. to make things easier you dont need to put all the html in echo tags you could just break out of the php ?> then write your html and where you need to insert the php just open the php again if you want i could knock up a quick example <form name="createthread" id="createthread" method="post" action="forum.php"> <table width="100%" border="0"> <tr> <td><center> Create A New Thread: </center>User: <input type="text" maxlength="50" width="50" name="username" id="username" value="<?php echo $username; ?>" readonly="readonly"/></td> </tr> <tr> <td>New Thread Name: <input type="text" name="newthreadname" id="newthreadname" /></td> </tr> <tr> <td> <input type="hidden" name="time" id="time" value="<?php echo $time; ?>"/></td> </tr> <tr> <td><textarea rows="6" cols="60" name="post" id="post"/> </textarea></td> </tr> <tr> <td><input type="submit" name="submit" value="Submit New Thread" /></td> </tr> </table> </form>
  8. type after the array tou want to see the structure of print_r(array_name); ie print_r($fldinfo); and post the data here then we can work out the values
  9. also delete all the form at the bottom and tables and replace it with this it dont look pretty but at least there is not about 6 open td and tr tags <form name="createthread" id="createthread" method="post" action="forum.php"> <table width="100%" border="0"> <tr> <td><center> Create A New Thread: </center>User: <input type="text" maxlength="50" width="50" name="username" id="username" value="<?php echo $username; ?>" readonly="readonly"/></td> </tr> <tr> <td>New Thread Name: <input type="text" name="newthreadname" id="newthreadname" /></td> </tr> <tr> <td> <input type="hidden" name="time" id="time" value="<?php echo $time; ?>"/></td> </tr> <tr> <td><textarea rows="6" cols="60" name="post" id="post"/> </textarea></td> </tr> <tr> <td><input type="submit" name="submit" value="Submit New Thread" /></td> </tr> </table> </form> yep just tested the post dat and it works now put this at the top to echo the post vars echo "test====================================="; foreach($_POST as $key => $value) echo $key."=".$value; echo "test=====================================";
  10. The best way i could think of right now is put them in an array with keys and then use sort() to arrange them then echo them out this should help http://www.w3schools.com/php/func_array_sort.asp if you need more help just say
  11. all i can see at the moment is that your start of the form is outside of the table td tag here <table width="500" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC"> <tr> <td> <table width="500" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF"> <form name="createthread" id="createthread" method="post" action="forum.php" enctype="text/plain"> <tr> <td><table width="%100" > <tr><center>Create A New Thread:</center> <td>User: <input type="text" maxlength="50" width="50" name="username" id="username" value="<?php echo $username; ?>" readonly="readonly"/></td> <td>New Thread Name: <input type="text" name="newthreadname" id="newthreadname" /><input type="hidden" name="time" id="time" value="<?php echo $time; ?>"/></td> </tr> </table> <table width="500" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF"> <tr> <td align="center"><textarea rows="6" cols="60" name="post" id="post"/></textarea> </tr> <table width="500" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF"> <tr> <td align="right"><input type="submit" name="submit" value="Submit New Thread" /></form)</td></td> </tr> </table> </table> </td> </tr> </table> </td> </tr> </table> it should look like this <table width="500" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC"> <tr> <td> <table width="500" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF"> <tr> <td><table width="%100" > <tr><form name="createthread" id="createthread" method="post" action="forum.php" enctype="text/plain"><center>Create A New Thread:</center> <td>User: <input type="text" maxlength="50" width="50" name="username" id="username" value="<?php echo $username; ?>" readonly="readonly"/></td> <td>New Thread Name: <input type="text" name="newthreadname" id="newthreadname" /><input type="hidden" name="time" id="time" value="<?php echo $time; ?>"/></td> </tr> </table> <table width="500" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF"> <tr> <td align="center"><textarea rows="6" cols="60" name="post" id="post"/></textarea> </tr> <table width="500" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF"> <tr> <td align="right"><input type="submit" name="submit" value="Submit New Thread" /></form)</td></td> </tr> </table> </table> </td> </tr> </table> </td> </tr> </table>[code]
×
×
  • 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.