Forum Moderators: open

Message Too Old, No Replies

What is a reliable form?

Transmission of datas

         

Polo75

10:35 am on Apr 12, 2006 (gmt 0)

10+ Year Member



Hi To All,

For a e-commerce website I use this kind of form:

<form method="get" action="../additem.php">
<input type="hidden" name="item_name" value="Love frame">
<input type="hidden" name="item_number" value="FR-05">
<input type="hidden" name="amount" value="23.00">
<input type="image" src="../images/buttons/sc-but-03.gif" class=addbutton name="submit" alt="Love frame">
<input type="hidden" name="add" value="1">
</form>

The problem is that SOMETIMES the datas are correctly send to the additem page, and SOMETIMES not (the fields I get are empty).

What could be the reason for this?

What could I do to stabilize the behaviour of this form?

Did I forget some parameters for the form?

Thanks very much for helping.

Paul.

eelixduppy

2:12 pm on Apr 12, 2006 (gmt 0)



Hello!

Your code looks good for the form. You should check your coding of the data-receiving page. Also, when you submit the form info, check in the url if all of the variables are set and available. Other than this, i would really need more information to help you with your problem.

Good luck!

rocknbil

5:49 pm on Apr 13, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<form method="get" action="../additem.php">

The problem is that SOMETIMES the datas are correctly send to the additem page, and SOMETIMES not (the fields I get are empty).

Is your PHP script set to properly parse "get" instead of "post"?