Hi, Timo.  Why can't use use hidden fields instead of appending the
values to the url?  It would be the same to access them via
$_GET['para1'] $_GET['para2] (unless you were using post as your method,
in which case it would simply be $_POST['varname']) if they were on the
url or in hidden fields.

Why can't you make this switch?

Also, have you tried using the % entity for ampersand (%26 if memory
serves me correct) instead of & or the literal ampersand?

So instead of mypage.php?para1=val1&para2=val2 you would use
mypage.php?para1=val1%26para2=val2.

Cheers,
Pablo

-----Original Message-----
From: Timo Boettcher [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 24, 2003 9:59 AM
To: [EMAIL PROTECTED]
Subject: [PHP] w3c-compliant form-action parameters

Hi,

  I am trying to get my pages through the w3c-validator for html.
  It doesn't like my
  <FORM action="mypage.php?para1=val1&para2=val2">
  Changing & to &amp; got my page through the validator, but broke my
  app, which seems not to be getting any parameters over URL anymore.
  How can I fix that?

  PS.: Moving that information from the URL to hidden fields or
  cookies/sessions is not an option.

 Timo

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to