|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
i am trying to open a pdf file on my web site with a form button i have tryed many things but none have worked so far, this is the last one i tryed.
<form method="POST" action='--WEBBOT-SELF--' "<a href=INFORMATIONVENDORS1.pdf name="informationvendors1.pdf"><!--webbot bot="SaveResults" U-File="INFORMATIONVENDORS1.pdf" S-Format="HTML/BR" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Builtin-Fields --> <p align="center"><a href="INFORMATIONVENDORS1.pdf"><input type="button" value="Service Application" name="B1"> </a> </form> here is the first one i tryed. <form method="POST" action='nformationvendors1.pdf' "<a href=INFORMATIONVENDORS1.pdf name="informationvendors1.pdf"> <p align="center"><a href="INFORMATIONVENDORS1.pdf"><input type="button" value="Service Application" name="B1"> </a> </form> any ideas? thanks Brass |
|
#2
|
|||
|
|||
|
I would suggest, if you are using php. That you use this kina code.
I am sorry, but i dont see the need of all the extra information that you have filled both into the form tag, and the input tag. PHP Code:
|
|
#3
|
|||
|
|||
|
thaks i will try that.
|
|
#4
|
|||
|
|||
|
re php help
i tryed that and i this error message
The requested method POST is not allowed for the URL /INFORMATIONVENDORS1.pdf. ? iam not sure whats up. this is my form now. <form name="open_PDF" action="http://informationvendors.com/INFORMATIONVENDORS1.pdf" method="post"> <a href="../INFORMATIONVENDORS1.pdf"> <input name="openPDF" type="submit" value="Application Form"> </a> <p align="left"> </form> |
|
#5
|
|||
|
|||
|
if you click on the link here it takes you right too it. but not when i press the button.
|
|
#6
|
|||
|
|||
|
well my main problem was i was trying to use a html button so the php wasnot working for it, this is how i fixed it.
<form method="GET" action="../informationvendors1.pdf"> <p align="center"><a href="../informationvendors1.pdf"><input type="submit" value="Application Form" name="B1"></a></p> form method post would not work for the pdf file. thanks for all your help. brass |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > php help with html buttons |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|