SunQuest
 
           PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
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  
Old May 14th, 2004, 11:55 AM
mr.brass mr.brass is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 5 mr.brass User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy php help with html buttons

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 -->&nbsp;
<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">&nbsp;
<p align="center"><a href="INFORMATIONVENDORS1.pdf"><input type="button" value="Service Application" name="B1">
</a>
</form>
any ideas? thanks Brass

Reply With Quote
  #2  
Old May 14th, 2004, 05:26 PM
Pheifel Pheifel is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: Denmark
Posts: 174 Pheifel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 43 m 46 sec
Reputation Power: 5
Send a message via MSN to Pheifel
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:
<? 

$openPDF 
$_POST['openPDF'];

if (isset(
$openPDF)) {
    include(
"pdf-file.pdf");
}



 
?>
 
 
 
 <form name="open_PDF" action="" method="post">
 
 <input name="openPDF" type="submit" value="OPEN PDF FILE">
 
 </form>

Reply With Quote
  #3  
Old May 14th, 2004, 05:32 PM
mr.brass mr.brass is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 5 mr.brass User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile php help

thaks i will try that.

Reply With Quote
  #4  
Old May 14th, 2004, 06:04 PM
mr.brass mr.brass is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 5 mr.brass User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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>

Reply With Quote
  #5  
Old May 14th, 2004, 06:10 PM
mr.brass mr.brass is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 5 mr.brass User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
if you click on the link here it takes you right too it. but not when i press the button.

Reply With Quote
  #6  
Old May 14th, 2004, 06:45 PM
mr.brass mr.brass is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 5 mr.brass User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > php help with html buttons


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway