|
Posted by Jonathan N. Little on 09/26/05 18:06
Kim wrote:
> "smokeyd" <tom_burrow@umbro.co.uk> wrote in message
> news:1127742947.368911.105600@g43g2000cwa.googlegroups.com...
>
>>Where is the php choking, when writing the html or when the form is
>>submitted? If you post up the full code I will try and help..
>>
>
> The PHP is choking because I'm not sending it a "0", "1", or "2".
>
> I really just need to understand how to dynamically generate the value for
> the "value=" in my
> <input type="hidden" name="config" value="0" />
>
> I need someone familiar with the syntax, this same method is used for PayPal
> submit.
> http://www.paypal.com/cgi-bin/webscr?cmd=_pdn_xclick_prepopulate_outside
>
>
The question is how are you setting the php variable, $phpVariable? From
a previous form submission or are you trying to set the value
dynamically before the form is submitted?
If former, then you either have to have some form input that you capture
in this form or derive the value to set to your variable $phpVariable.
Then you have to insert it into your HTML like:
<input type="hidden" name="config" value="<?php echo $phpVariable; ?>" />
It the latter, then we are talking about client-side JavaScript, a
method that is becoming increasingly unreliable as more folks are
disabling their JavaScript in their browsers
What smokeyed requested was the php code that you are using to set the
form field...
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|