Jump to content

Clarisse

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Clarisse's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thank you for your help. I ended up having to cache the information.
  2. I still can't get it to work.  ??? I know that my method of image/code creation as well the confirmation is working but I can't seem to get them working with the Page-A to Page-B info transfer.  The form on which the codes are collected is made up of a PHP script with a HTML/tpl file. Could someone please tell me if I am missing a step. ================= 1. User arrives at Page-A 2. Page-A processes Page-B that includes a script that unsets any earlier code and randomly selects an image and a code from db 3. Image is displayed and the code from Page-B is posted onto Page-A 4. User enters code 5. If both user-entered code and posted code from Page-B match, page is proccesed 6. If user-entered code and posted code from Page-B do not match page is reloaded which reprocesses Page-B making it create a new code and image.
  3. Thank you, Barand.  So I will need a 2nd page. I haven't gotten it going yet as I am trying to incorporated it into a pre-existing form--along with being burnt-out and weepy (one year tomorrow since I started working on this *#$!* site).
  4. [quote author=cuprasteve link=topic=106371.msg425306#msg425306 date=1157026510] is there a way of doing it without the include? like make it accessible just for that variable and now have to try and access the whole page? [/quote] [code]<?php include("page1.php"); echo $var; ?>[/code] I may be wrong but you aren't getting all of the information and/or variables on the entire page.  Only the variable mentioned after 'echo' *found* on "page1.php"--where the variable was defined.
  5. [quote author=Jenk link=topic=106321.msg425104#msg425104 date=1156985300] [quote author=Barand link=topic=106321.msg425076#msg425076 date=1156982640] User enters number submit form get random number compare with user input [/quote]Don't forget to unset the random number once approved. [/quote] Okay.  I'm doing that--I think. However, the only way I can see to have the random number saved is to make a "useless" page that the user must pass through before getting to the page where the number needs to be entered by the user, verified, and unset.  Is there any simpler way?
  6. Hi, I have a code which gets a random number and that is to be matched by the user.  It is working well but it compares the user entered number with a *new* random number when the page is submitted--not the one appearing on the screen.  The user must enter the first number for a second time, after the page reloads an ignore the instructions new number has appeared.  In order to get the number right on the first try the user has to be psychic and one step behind to get it correct any other time. Does anyone know of a way around this, to get the number to apply to the page on which it appears ? EXAMPLE ------------------------------------------- Random Number 'A': 1234 User Enters Number 'A': 1234 FAILURE--page reloads Random Number 'B': 5678 User Enters Number 'A': 1234 SUCCESS Random Number 'C': 0123 User Enters Code 'B': 5678 SUCCESS ETC....
  7. [quote author=eknudtson link=topic=106091.msg424349#msg424349 date=1156894178] Clarisse, no I'm not using any template files. I'm just running through a loop, spittin out text. <!-- is the start of a hidden note in html, which is why this is so strange. The syntax error can't be in PHP, because like I said, it works 90 percent of the time, and only chokes on specific data. I've looked at this data, and to me there's nothing strange about it. Just plain old text. Are there any circumstances when php would spit out <!-- --> for a reason? Thanks for your help... [/quote] I'm sorry but that is about all I can think that it might be.  I have never seen PHP just outputting "<!-- -->". Try what hitman6003 is suggesting. Good luck.
  8. Just thinking but do you have a template file (.tpl) related to the file which is causing you the problems?  I'd start looking near modelname_157.jpg  for an error/mistake that "<!--" looks like the start of an HTML hidden notation.  My guess is that there is a syntax error.
  9. Hello, I'm new to programming and I am trying to modifying a program.  I want make a change so that the name appears instead of the associated, stored id#.  When I echo the variable for the id#, I get the number --Good so far.  When I do the query with a set number (not the variable), I get the name.--Also good.  However, when I try to do anything with that variable (number), it acts "dead'' as if it has no value as a number.  In the thousands of ways that I have written the query I get "Error 1065 - Query was empty",  "S" and  " ' ' " .  When I try to add the variable to 100 (for example) it comes back as 100, as if the variable equals 0. If I do an IF/ELSE with a < or > the first choice is returned.  Is that possible?
×
×
  • 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.