Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Whats wrong with this form?


  • Please log in to reply
7 replies to this topic

#1 JUICYboy

JUICYboy

  • Members
  • 537 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Anaheim, Ca
  • Local time:05:44 PM

Posted 10 May 2010 - 04:55 PM

My friend has this website that has this form:

http://www.jandjcarburetors.com/ its on Order info.

It does not sent it to his e-mail. I checked the source code it does have a e-mail address.
but I think it does not sent this to a PHP form so it can be processed, it sends it to java form. :thumbsup:
when I push the sent button it says:

Sorry, Method Not Allowed.

The requested method is not allowed for this URL

.Any suggestions? :flowers:

Edited by JUICYboy, 10 May 2010 - 04:58 PM.


BC AdBot (Login to Remove)

 


#2 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:03:44 PM

Posted 10 May 2010 - 05:27 PM

The form does not care what sort of program is getting it. It has no idea if the server is running PHP, Java, Perl, or anything else. You do need to specify where the form data is being sent. For instance, if it is being sent to a PHP file, then the url in the form needs to be something like action="form.php". If it is java, then it needs to be something like action="form.jsp". Then of course there needs to be a file on the server called 'form'.

In other words, the 'action' parameter in the HTML is not properly specified.

#3 JUICYboy

JUICYboy
  • Topic Starter

  • Members
  • 537 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Anaheim, Ca
  • Local time:05:44 PM

Posted 10 May 2010 - 07:17 PM

I see so I would have to set the action="contactus.php" on the .html sheet. And I also have to create a contacus.php sheet that will in turn send the info to the
e-mail specified. Then upload it to there server. Right? :thumbsup:

Thank-you so much for your help

Edited by JUICYboy, 10 May 2010 - 08:03 PM.


#4 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:03:44 PM

Posted 10 May 2010 - 08:14 PM

Something like that. There is a sticky at the top of this forum that shows how to upload data from a form to a php page on a server. Maybe you should copy the code and see if you can make it work, and then modify it for your purposes.

#5 JUICYboy

JUICYboy
  • Topic Starter

  • Members
  • 537 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Anaheim, Ca
  • Local time:05:44 PM

Posted 11 May 2010 - 12:10 PM

Hi, before I do that I saw that it did have a action code however it looks very weird. I do not know if it normally is this long.

action="http://us.1.p6.webhosting.yahoo.com/forms?login=jjcarb@sbcglobal.net">

this is the action. It sends it directly to the e-mail, :thumbsup: not to a Php or other form to process it.

Is this somewhat the source of the problem?

#6 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:03:44 PM

Posted 11 May 2010 - 12:28 PM

Where did you get the URL that you are trying to use?

It sends it directly to the e-mail, not to a Php or other form to process it.

Wrong. Somewhere is an application that receives the data from the form, and then sends it via another program that is commonly known as electronic mail. In reality, electronic mail is just a bunch of programs put together to send data electronically.

#7 JUICYboy

JUICYboy
  • Topic Starter

  • Members
  • 537 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Anaheim, Ca
  • Local time:05:44 PM

Posted 11 May 2010 - 12:54 PM

O okay so I will just delete the action on it.

And I will copy and paste the action you reffered me to, or this other one I found out about and also the php form, and then just upload it to the server.
:thumbsup:

#8 Andrew

Andrew

    Bleepin' Night Watchman


  • Moderator
  • 8,259 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:02:44 PM

Posted 13 May 2010 - 01:35 AM

I use, and recommend, the FormMail PHP script available from Tectite.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users