Submitting to a php form handler with only a simple hyperlink

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • macklin01
    New Member
    • Aug 2005
    • 145

    Submitting to a php form handler with only a simple hyperlink

    Hi, everybody.

    I'm trying to do some last cleaning up on the following php page I wrote:



    This URL parses an XML file of publications:



    It inserts DOI (digital object identifier), BibTeX (bibliography for LaTeX), PDF, and abstract links when the information is defined for a publication entry.

    My problem is on the abstract portion. Right now, I just have links of the form

    Code:
    <a href="php_functions/abstract.php?Abstract=<string>&amp;Title=<string>">[Abstract]</a>
    That passes the abstract and title information over to a very simple abstract.php page, which pastes the appropriate text in the appropriate places. (Just try clicking one.) It uses
    Code:
    $abstract = $_GET['Abstract'];
    $title = $_GET['Title'];
    to get the info from the URL for the page.

    Okay, so there's the background information. Now, for the question:

    Is there any way to get rid of all the mess in the URL, perhaps by using a hidden form? I'd still like it to appear as a simple HTML text link on the Publications.ph p page. Please excuse my noobiness on PHP--I'm fairly amateur at PHP. I'm still tickled pink just to have written a simple and robust XML parser with objects for PublicationItem s, etc. :)

    Thanks in advance for any recommendations !! -- Paul
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    You could use CURL and POST the variables to the destination script. That way no one can see or copy it.

    Ronald :cool:

    Comment

    Working...