Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

fieldset


Guest

Recommended Posts

Has anyone worked out how to include a <fieldset> in the forms?

 

As soon as I get to make anything that resembles an HTML tag, I get a "hidden" <input...> tag jump between the <form...> and the <fieldset> tags

 

 

Example:

 

try <form.... anytextbeforeclosingtag

 

outputs:

<form.... anytextbeforeclosingtag><input ....hidden />

 

try <form... followedbysomethingwith><fieldset>

 

outputs:

<form....><input ....hidden />followedbysomethingwith><fieldset>

 

<_< .

 

Cheers,

Mak.

Link to comment
Share on other sites

i'm kinda jumping in the dark but cant you just use the draw form function?

 

function tep_draw_form($name, $action, $parameters = '', $method = 'post', $params = '') {

 

 

thats taken from html_output.php, its the generic layout of the form header, you will need to close the form later either using </form> or

 

tep_image_submit also located in that file.

Link to comment
Share on other sites

Unfortunately not.

 

if you add anything with a "<" in it, then the <input... hidden> tag jumps in between them. This even happens when the form tag closes.

 

example:

 

...

$form .= ' >';

 

return $form;

change this to

...

$form .= ' ><fieldset>';

 

return $form;

outputs

 

<form.....><input...hidden..>><fieldset><input...and so on

 

However,change this to

...

$form .= ' crazytext>';

 

return $form;

outputs

<form... crazytext><input...hidden...>

There appears to be some restriction to what we can add to these variables and my Bugadifino gland is working overtime :)

 

Cheers,

Mak.

Link to comment
Share on other sites

I don't have access to the PHP.ini file.

 

Including the function:

 

ini_set ( url_rewriter.tags, string newvalue)

 

on the page seems to do nothing either.

 

Good luck with the XHTML, I managed to get rid of all the table fudging and now have a pure CSS version. Without being able to slip in fieldsets, I'm stuck with a HTML4.0 version on all form pages. :(

 

Thanks for your input, Gary, if you have any more bright ideas... I'm all ears.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...