I use a php file in order to collect data from an interactive form on a website. The php code sends the submitted file to a folder on the server, and displays a "Thank you for your submission" message. I would like to add a hyperlink to a payment page, but can't find a code that works, and I don't really know php. Here is what I have, which doesn't work, and I would be grateful for a solution. Thank you!


//Step 1: Get the XFDF Raw Data
$XFDFData = file_get_contents('php://input');

//Check it to see if it is empty or too short
if ( strlen($XFDFData)<10)
header("Location: http://www.pdfill.com/pdf_action.html#4");

// make the random file name
$randName = md5(rand() * time());

$File = 'Submitted_Forms/' .$randName . '.pdf'; 
$Handle = fopen($File, 'w');
$Data = $XFDFData; 
fwrite($Handle, $Data); 

$strLink = "http://www.revbootcamp.com/$File";
// echo $strLink;

$to = 'tlctara@comcast.net, [email]wbrucecroom@msn.com[/email]';
$subject = 'New Registration Form';
$message = 'A new case form has been submitted.  Please click the link to view.
' . $strLink;
$email = 'bruce@revbootcamp.com';
$headers = 'From: ' . $email . "\r\n" .
            'Reply-To: ' . $email . "\r\n" .
          'X-Mailer: PHP/' . phpversion();
mail ($to, $subject, $message, $headers);
echo "<a src=\"http://www.revbootcamp.com/Payment.html\">Thank You for your submission. Click Here To Pay</a>";


my i ask u some question?
about hyperlink in php

i will know to make hyperlink in php...hyperlink like that:-
Bengkel ยป [6/28]

Bengkel Besi [10], Bengkel Mesin [2], Membaiki Basikal [2], Membaiki bot [1], Membaiki Kereta [10], Membaiki Motorsikal [4].
2)when i click this word,can link fto their database

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.