Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Coogan

    Problem with form posting

    Thanks very much. That solved it. I cant believe i over looked something as simple as that.
  2. Coogan

    Problem with form posting

    I have added your code in to the page and the results are as follows. Array ( [id] => 1 [name] => [Submit] => Submit ) This has now confused me even more!!
  3. Coogan

    Problem with form posting

    The page loads fine when its requested, no errors at all, i have also now added an echo to show the id that it is getting and it is the same as the one that is passed in the url. Its only when I submit the form on that page that I get the error. I think that the problem lies in the hidden input...
  4. Coogan

    Problem with form posting

    Ok, This is where I am at the moment. I have changed some of the variables in order to try and find out what is going wrong. The code currently looks like this: <? if(isset($_POST['submit'])) { $name = $_POST['name']; $id = $_POST['id']; $SQL = " INSERT INTO request "; $SQL...
  5. Coogan

    Problem with form posting

    Hi Vragabond, Sorry I should of explained that the original "id" is passed to the script via the request for the page i.e: "example.php?id=1" I then belive that the follwoing line should take that number and set it as the "id". if(isset($_POST['post'])) {$id = $_POST['id'];} else {$id =...
  6. Coogan

    Problem with form posting

    Hi Karver, It still comes back with "Notice: Undefined index: id" when posting the form. Any ideas? Thanks Martin
  7. Coogan

    Problem with form posting

    Hello, Can anyone see why this piece of code is not working. Sometimes the page looks as if it is posting the data but nothing appears in the table "request" and then there are other times when i get "Notice: Undefined index: id" Any suggestions?? <? if(isset($_POST['post'])) { $name =...
  8. Coogan

    Request Method Error

    Hello all, I am having a problem with the below script and im not sure why. The error message that I am getting is: Notice: Undefined variable: request_method in C:\Program Files\Apache Group\Apache2\htdocs\fns\login.php on line 49 However this code is working fine on a hosted site and not...
  9. Coogan

    Getting NT Username

    Thanks Ivanv. This works a treat on my standalone machine. Will have to wait to Monday to see if I can get it working on an NT network. Thanks again. Martin
  10. Coogan

    Getting NT Username

    Hi folks, Hope you can help me on this. What I am trying to find out is if it is possible to get an NT username through javascript. The codeing that I have found so far does not seem to work. The code that i have is: <script language="javascript"> function getdata() { var username =...
  11. Coogan

    Opening a page to a particular point

    Hi Folks, I need some help with some thing that is probably quite basic! I have a page that contains images. On another page I have details that relate to each of those images. What I want to do is when I click on an image I want to open the details page and get it to go to a particular point...
  12. Coogan

    Convert String to Integer

    Hi Craig, I need to convert a Integer to String. Thanks Martin
  13. Coogan

    Convert String to Integer

    Hi Guys, Can some one tell me how to convert an Integer to a String. Basically i used the parseInt() command to convert a string to an integer so that I could add a value to it and I now need to change it back to a string so that I can use it as a 'select' option value. Thanks Martin
  14. Coogan

    Changing a line of code in html

    Thanks to everyone for their help on this. I ended up doing basically what Bastien said. I created a txt file with the information in and then changed the index file to PHP so that I could read the data out of the file and place it where I needed on the page. One thing I was curious about was...
  15. Coogan

    Changing a line of code in html

    Ok i am begining to userstand this a lttle bit. I would use the fopen() command to open the file. $myfile = fopen("index.html", "r+") Then I would need to reset the file pointer to the line of code that I want, say line 83 fseek($myfile,82) Then write the data that I want to change...
  16. Coogan

    Changing a value in a html file

    I would be looking to permenantly change the actual page source. The admin page would be the only page that would be open at the time of the change. I looked at your posibility of using the innerhtml option whilst having the page open but when I closed the page and reopened it, it cleared the...
  17. Coogan

    trying to get a four column array to align correctly in a tbale

    You may want to start by looking at your query. It looks like your query is only taking the job name. Your code... // column 1 JOB TITLE echo '<td height="31" colspan="2" align="center" class="style60">'.$table[0].'</td>'; // column 2 WITH TEL echo '<td height="31" align="center"...
  18. Coogan

    Right-mouse disable without alert

    Try this one. It works on my local intranet site. <script language="JavaScript"> <!-- //Disable right mouse click Script function clickIE() { if (document.all) return false; } function clickNS(e) { if (document.layers||(document.getElementById&&!document.all)) { if...
  19. Coogan

    Changing a value in a html file

    Hi Guys, I have asked this question in the PHP forum and been directed here. I am trying to find out if it is possible to change a line of html code in another webpage by clicking a button. Basically I want to change a value on index.htm when i cilck a button on admin.htm The value that I...
  20. Coogan

    Changing a line of code in html

    Hi Guys, I am trying to find out if it is possible to change a line of html code in another webpage by clicking a button. Basically I want to change a value on index.htm when i cilck a button on admin.htm Is this possible? If so can someone please point me in the right direction. Thanks Martin

Part and Inventory Search

Back
Top