Jump to content

forcom

Members
  • Posts

    21
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

forcom's Achievements

Member

Member (2/5)

0

Reputation

  1. Thanks for the information. I got it to work I change code around that you submited. I remove input submit name and change text area name to keywords. Thanks for the help if(isset($_POST['keywords'])){ //it works } <form method="post" enctype="multipart/form-data"> <table cellpadding="0" cellspacing="0" width="380" height="30"> <tr> <td style="width: 297px; vertical-align: middle;"><input type="text" name="keywords" size="40"/></td> <td style="width: 108px; vertical-align: middle;"><input type="submit" value="Go Search" /></td> </tr> </table> </form>
  2. I tried and still having the same problem. When I type in a word in the text area and click on go search button everything works but if I just type in the word and press the enter key on the keyboard I don`t get any results. How can I code this so when user hits the enter key on the keyboard. if(isset($_POST['search']) ){ //Submit button hit or Enter button hit }
  3. <table cellpadding="0" cellspacing="0" width="954" border="0" height="258" bgcolor="FFFFFF"> <tr><td colspan="2"> <center><br> <form method="post"> <table cellpadding="0" cellspacing="0" width="380" height="30"> <tr> <td width="297" valign="middle"> <input type="text" name="gosearch" size="40"> </td> <td width="108"> <input type="submit" value="Go Search" name="search"> </td> </tr></form> </table>
  4. Hello all, How can I get my form textbox to hold the values when user hits enter key. I want enter key to be same as hitting the submit button. if(isset($_POST['search']) || ? ){ //Submit button hit or Enter button hit }
  5. I have a ticketing table where the customers enter they email address to get they ticket number email to them. How would I code a program where it only email the most recent post date by the customer. :-\
  6. Hello all, I would like to learn how to build search engine like google. Anyone have any links or books that can help me because a good programmer. I would like your input plz.
  7. I know it set thats why I put == 1. I don`t want same ticket numbers in the table. How can I set it to loop again if the ticket already exist.
  8. I have a random ticket and I tell the system to check table. If the ticket exist echo 1. function random_ticket($length=15){ $ticket = ''; $ticketpick = "ABCDEFGHIJKMNOPQRSTUVWXYZ01234567890123456789"; for($i=0;$i<$length;$i++){ $ticket .= $ticketpick{rand(0,35)}; } return $ticket; } $gtnum = random_ticket(; $ctnum = mysql_query("SELECT ticketnum FROM table WHERE ticketnum='$gtnum'"); if ($ctnum == 1){ //ticket match get new ticket }esle { //ticket don`t match $ticket = $ctnum; } How can I keep a loop until a ticket don`t match
  9. The id in the table is set on auto. How would I get the the code to give me the new id that just got created and email me that information.
  10. Hello I don`t know how to start this code. What code will allow me to know when new entry added to my table. I want to write a code that will email me when table information. Not when user submit.
  11. My database has over 200 rows and I trying to get my data to display 10 rows and create next page. $row_per_page = 10; $q = mysql_query("SELECT * FROM table"); $total_rows = mysql_num_rows($q); if ($total_rows > $row_per_page) $pages = ceil($total_rows / $row_per_page); $addpage = $pages + 1; echo "Page"; for ($number = 1; $number < $addpage; $number++){ echo "$number"; }
  12. http://www.tizag.com/phpT/fileupload.php Ok what am I doing wrong here. I followed everything but I am receiving error Parse error: syntax error, unexpected ';' in \\table.php on line 243 <form enctype="multipart/form-data" action="vptable.php" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="100000" /> Choose a file to upload: <input name="uploadedfile" type="file" /><br /> <input type="submit" value="Upload File" /> </form> <?php //location of uploaded images $target_path="images/vpimages/upimages/"; $target_path =$target_path.basename($_FILE['uploadedfile']['name']; if (move_uploaded_file($_FILE['uploadedfile']['temp_name'], $target_path)){ echo"The file ". basename($_FILE['uploadefile']['name']). " has been uploaded";} else { echo "There was an error uploading file, Please try again!"; }
  13. How can I upload a file to images/vpimages/upimages I want it to upload and create a folder when it upload.
  14. $ctryfrom = "SELECT DISTINCT country FROM table"; $ctry = mysql_query($ctryfrom); while($row = mysql_fetch_assoc($ctry)){ $countrynames = $row['country']; echo '<table><tr><td>'; echo "$countrynames"; //How can I set the loop to echo </td></tr><tr><td> ten loops to add another column in the table. }
  15. Sorry about the example it would have been too much typing. You can move it to help. $ctryfrom = "SELECT DISTINCT country FROM table"; $ctry = mysql_query($ctryfrom); while($row = mysql_fetch_assoc($ctry)){ $countrynames = $row['country']; echo '<table><tr><td>'; echo "$countrynames"; //I want to echo </td></tr><tr><td> to add another column in the table. How can I set it to echo }
×
×
  • 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.