Jump to content

OZZIE

Members
  • Posts

    3
  • Joined

  • Last visited

OZZIE's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Ooops :)I though w3schools was part of w3c :)So I've been posting in wrong place
  2. It can be done both server and client side, since your client experiences it visits index.php and not the required file.What I mean is, the client/webbrowsers url is the one the form should use, because requiring a file in php makes the file just extend the information. So the client experices it as if it only had been one file all along. Therefor not specifying action will submit to the correct page as I tried to explain before.The only problem is you dont allow it in your xhtml 1.1 standard for What reason? :SThats why Im suggesting that you add a feature for this in new standards. I mean I cant see any down sides with it. If there are tell me plz....
  3. Hello. Im wondering about the action attribute.Im using a template with a form inside it.I use php require to extend my files.Now when this form is submited I want it to submit the file that has required the template file. This happens automaticly when I dont specify action for the form, since the browser opens the file and not the template first.Maybe this sounds confusing to you so I'll make an example: template file:---------------<form>.....</form>index.php-----------<?phprequire('template');?> One sollution to this problem is either have a unvalid page = not specifying action.or using php = action="<?php echo $_SERVER['PHP_SELF']; ?>".However I find it odd that this can't be done in xhtml/html...Why not just add a value to action? Like action="none" or similar?Best reguards OZZIE
×
×
  • Create New...