Wednesday, 15 August 2012

get - Html form, relative target -


Suppose my website is posted in local host / miceet

and I have a target with The form is:

"My Controller"

Then click on the Local Host / Microcontroller

instead of

the Local Host / Maisette The request will be sent / MyController.

I think what the name of the site will be called,

Is there any great way to send a relative request instead?

Do you mean:

  form action = ". ./../ MyController "method =" received "& gt;  

You can always create form php variables in form actions, and know that once the definition update will be the controller.

To read the current page URL on this page:

  & lt ;? Php function currentpageURL () {$ pageURL = $ _SERVER ['HTTPS'] == 'on'? 'Http: //': 'http: //'; $ PageURL = $ _SERVER ['SERVER_PORT']! = '80'? $ _SERVER ["SERVER_NAME"] ":". $ _ SERVER ["SERVER_PORT"]. $ _ Server ["REQUEST_URI"]: $ _SERVER ['SERVER_NAME'] $ _SERVER ['REQUEST_URI']; $ Page return; }? & Gt;  

Then resonate the curPageURL in the form action:

  & lt; Form action = "& lt ;? php eCoke CurrentPageURL () ;? & gt; / MyController" & gt;  

No comments:

Post a Comment